13 lines
		
	
	
		
			378 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			378 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class GetObjectTraitsNode(LnxLogicTreeNode): | ||
|  |     """Returns all traits from the given object.""" | ||
|  |     bl_idname = 'LNGetObjectTraitsNode' | ||
|  |     bl_label = 'Get Object Traits' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxNodeSocketObject', 'Object') | ||
|  | 
 | ||
|  |         self.add_output('LnxNodeSocketArray', 'Traits') |