armory/blender/arm/logicnode/scene/LN_get_collection.py

18 lines
576 B
Python
Raw Normal View History

2017-11-27 10:07:33 +01:00
from arm.logicnode.arm_nodes import *
class GetGroupNode(ArmLogicTreeNode):
2020-09-28 15:58:41 +02:00
"""Searches for a collection of objects with the given name and
outputs the collection's objects as an array, if found.
@seeNode Collection"""
2017-11-27 10:07:33 +01:00
bl_idname = 'LNGetGroupNode'
2019-01-22 15:35:06 +01:00
bl_label = 'Get Collection'
arm_version = 1
2017-11-27 10:07:33 +01:00
def init(self, context):
super(GetGroupNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('NodeSocketString', 'Name')
2020-09-20 20:10:01 +02:00
self.add_output('ArmNodeSocketArray', 'Objects')
2017-11-27 10:07:33 +01:00
add_node(GetGroupNode, category=PKG_AS_CATEGORY, section='collection')