13 lines
		
	
	
		
			380 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			380 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class GetCameraScaleNode(LnxLogicTreeNode): | ||
|  |     """Returns the scale of the given camera.""" | ||
|  |     bl_idname = 'LNGetCameraScaleNode' | ||
|  |     bl_label = 'Get Camera Ortho Scale' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxNodeSocketObject', 'Camera') | ||
|  | 
 | ||
|  |         self.add_output('LnxFloatSocket', 'Ortho Scale') | ||
|  | 2 |