16 lines
		
	
	
		
			587 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			587 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class GetObjectOffscreenNode(LnxLogicTreeNode): | ||
|  |     """Returns if the given object is offscreen. Don't works if culling is disabled.""" | ||
|  |     bl_idname = 'LNGetObjectOffscreenNode' | ||
|  |     bl_label = 'Get Object Offscreen' | ||
|  |     lnx_section = 'props' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.inputs.new('LnxNodeSocketObject', 'Object') | ||
|  | 
 | ||
|  |         self.outputs.new('LnxBoolSocket', 'Is Object Offscreen') | ||
|  |         self.outputs.new('LnxBoolSocket', 'Is Mesh Offscreen') | ||
|  |         self.outputs.new('LnxBoolSocket', 'Is Shadow Offscreen') |