armory/blender/arm/logicnode/scene/LN_get_collection.py
2020-09-28 15:58:41 +02:00

18 lines
576 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_version = 1
def init(self, context):
super(GetGroupNode, self).init(context)
self.add_input('NodeSocketString', 'Name')
self.add_output('ArmNodeSocketArray', 'Objects')
add_node(GetGroupNode, category=PKG_AS_CATEGORY, section='collection')