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

22 lines
592 B
Python

import bpy
from arm.logicnode.arm_nodes import *
class GroupNode(ArmLogicTreeNode):
"""Group node"""
bl_idname = 'LNGroupNode'
bl_label = 'Collection'
arm_version = 1
property0: PointerProperty(name='', type=bpy.types.Collection)
def init(self, context):
super(GroupNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array')
def draw_buttons(self, context, layout):
layout.prop_search(self, 'property0', bpy.data, 'collections', icon='NONE', text='')
add_node(GroupNode, category=PKG_AS_CATEGORY, section='collection')