22 lines
		
	
	
		
			605 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
		
			605 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | 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='') |