16 lines
		
	
	
		
			361 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			361 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | import bpy | ||
|  | 
 | ||
|  | class OnceNode(LnxLogicTreeNode): | ||
|  |     bl_idname = 'LNOnceNode' | ||
|  |     bl_label = 'Once' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxNodeSocketAction', 'Run Once') | ||
|  |         self.add_input('LnxNodeSocketAction', 'Reset') | ||
|  | 
 | ||
|  |         self.add_output('LnxNodeSocketAction', 'Out') | ||
|  | 
 | ||
|  |    |