2017-11-27 10:07:33 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
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'
|
2020-10-27 19:44:37 +01:00
|
|
|
arm_section = 'collection'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2017-11-27 10:07:33 +01:00
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
super(GetGroupNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('NodeSocketString', 'Name')
|
2020-11-17 16:01:15 +01:00
|
|
|
|
2020-09-20 20:10:01 +02:00
|
|
|
self.add_output('ArmNodeSocketArray', 'Objects')
|