22 lines
605 B
Python
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
import bpy
from lnx.logicnode.lnx_nodes import *
class GroupNode(LnxLogicTreeNode):
"""Returns the objects of the given collection as an array.
@seeNode Get Collection"""
bl_idname = 'LNGroupNode'
bl_label = 'Collection'
lnx_section = 'collection'
lnx_version = 1
property0: HaxePointerProperty('property0', name='', type=bpy.types.Collection)
def lnx_init(self, context):
self.add_output('LnxNodeSocketArray', 'Array')
def draw_buttons(self, context, layout):
layout.prop_search(self, 'property0', bpy.data, 'collections', icon='NONE', text='')