17 lines
		
	
	
		
			523 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			523 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| class SetCameraFovNode(LnxLogicTreeNode):
 | |
|     """Sets the field of view (FOV) of the given camera.
 | |
| 
 | |
|     @seeNode Get Camera FOV"""
 | |
|     bl_idname = 'LNSetCameraFovNode'
 | |
|     bl_label = 'Set Camera FOV'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketAction', 'In')
 | |
|         self.add_input('LnxNodeSocketObject', 'Camera')
 | |
|         self.add_input('LnxFloatSocket', 'FOV', default_value=0.9)
 | |
| 
 | |
|         self.add_output('LnxNodeSocketAction', 'Out')
 |