21 lines
		
	
	
		
			614 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			614 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | 
 | ||
|  | class GetElementNode(LnxLogicTreeNode): | ||
|  |     """Get Element""" | ||
|  |     bl_idname = 'LNGetElementNode' | ||
|  |     bl_label = 'Get Element' | ||
|  |     bl_description = 'Get Element' | ||
|  |     lnx_category = 'HTML' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxNodeSocketAction', 'In') | ||
|  |         self.add_input('LnxStringSocket', 'Selector') | ||
|  | 
 | ||
|  |         self.add_output('LnxNodeSocketAction', 'Out') | ||
|  |         self.add_output('LnxDynamicSocket', 'Element') | ||
|  | 
 | ||
|  | def register(): | ||
|  |     add_category('HTML', icon='SEQ_STRIP_META') | ||
|  |     GetElementNode.on_register() |