21 lines
551 B
Python
21 lines
551 B
Python
import bpy
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
class GroupNode(ArmLogicTreeNode):
|
|
"""Group node"""
|
|
bl_idname = 'LNGroupNode'
|
|
bl_label = 'Collection'
|
|
bl_icon = 'NONE'
|
|
|
|
property0: PointerProperty(name='', type=bpy.types.Collection)
|
|
|
|
def init(self, 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=MODULE_AS_CATEGORY, section='collection')
|