16 lines
		
	
	
		
			557 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			557 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| class SetActiveTilesheetNode(LnxLogicTreeNode):
 | |
|     """Set the active tilesheet."""
 | |
|     bl_idname = 'LNSetActiveTilesheetNode'
 | |
|     bl_label = 'Set Active Tilesheet'
 | |
|     lnx_version = 1
 | |
|     lnx_section = 'tilesheet'
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketAction', 'In')
 | |
|         self.add_input('LnxNodeSocketObject', 'Object')
 | |
|         self.add_input('LnxStringSocket', 'Tilesheet')
 | |
|         self.add_input('LnxStringSocket', 'Action')
 | |
| 
 | |
|         self.add_output('LnxNodeSocketAction', 'Out') |