15 lines
		
	
	
		
			493 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			493 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| class SetCameraAspectNode(LnxLogicTreeNode):
 | |
|     """Sets the aspect of the given camera."""
 | |
|     bl_idname = 'LNSetCameraAspectNode'
 | |
|     bl_label = 'Set Camera Aspect'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketAction', 'In')
 | |
|         self.add_input('LnxNodeSocketObject', 'Camera')
 | |
|         self.add_input('LnxFloatSocket', 'Aspect', default_value=1.7)
 | |
| 
 | |
|         self.add_output('LnxNodeSocketAction', 'Out')
 |