18 lines
		
	
	
		
			560 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			560 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | 
 | ||
|  | class CanvasGetScaleNode(LnxLogicTreeNode): | ||
|  |     """Returns the scale of the given UI element.""" | ||
|  |     bl_idname = 'LNCanvasGetScaleNode' | ||
|  |     bl_label = 'Get Canvas Scale' | ||
|  |     lnx_section = 'elements_general' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxNodeSocketAction', 'In') | ||
|  |         self.add_input('LnxStringSocket', 'Element') | ||
|  | 
 | ||
|  |         self.add_output('LnxNodeSocketAction', 'Out') | ||
|  |         self.add_output('LnxIntSocket', 'Height') | ||
|  |         self.add_output('LnxIntSocket', 'Width') |