armory/blender/arm/logicnode/scene/LN_get_collection.py
2020-11-17 12:01:15 -03:00

18 lines
536 B
Python

from arm.logicnode.arm_nodes import *
class GetGroupNode(ArmLogicTreeNode):
"""Searches for a collection of objects with the given name and
outputs the collection's objects as an array, if found.
@seeNode Collection"""
bl_idname = 'LNGetGroupNode'
bl_label = 'Get Collection'
arm_section = 'collection'
arm_version = 1
def init(self, context):
super(GetGroupNode, self).init(context)
self.add_input('NodeSocketString', 'Name')
self.add_output('ArmNodeSocketArray', 'Objects')