32 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| class GetParticleDataNode(LnxLogicTreeNode):
 | |
|     """Returns the data of the given Particle System."""
 | |
|     bl_idname = 'LNGetParticleDataNode'
 | |
|     bl_label = 'Get Particle Data'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.inputs.new('LnxNodeSocketObject', 'Object')
 | |
|         self.inputs.new('LnxIntSocket', 'Slot')
 | |
| 
 | |
|         self.outputs.new('LnxStringSocket', 'Name')
 | |
|         self.outputs.new('LnxFloatSocket', 'Particle Size')
 | |
|         self.outputs.new('LnxIntSocket', 'Frame Start')
 | |
|         self.outputs.new('LnxIntSocket', 'Frame End')
 | |
|         self.outputs.new('LnxIntSocket', 'Lifetime')
 | |
|         self.outputs.new('LnxFloatSocket', 'Lifetime Random')
 | |
|         self.outputs.new('LnxIntSocket', 'Emit From')
 | |
| 
 | |
|         self.outputs.new('LnxVectorSocket', 'Velocity')
 | |
|         self.outputs.new('LnxFloatSocket', 'Velocity Random')
 | |
|         self.outputs.new('LnxVectorSocket', 'Gravity')
 | |
|         self.outputs.new('LnxFloatSocket', 'Weight Gravity')
 | |
| 
 | |
|         self.outputs.new('LnxFloatSocket', 'Speed')
 | |
|     
 | |
|         self.outputs.new('LnxFloatSocket', 'Time')
 | |
|         self.outputs.new('LnxFloatSocket', 'Lap')
 | |
|         self.outputs.new('LnxFloatSocket', 'Lap Time')
 | |
|         self.outputs.new('LnxIntSocket', 'Count')
 |