forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
21
leenkx/blender/lnx/logicnode/scene/LN_collection.py
Normal file
21
leenkx/blender/lnx/logicnode/scene/LN_collection.py
Normal file
@ -0,0 +1,21 @@
|
||||
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='')
|
Reference in New Issue
Block a user