forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			479 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			479 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from lnx.logicnode.lnx_nodes import *
 | 
						|
 | 
						|
class SetNameNode(LnxLogicTreeNode):
 | 
						|
    """Sets the name of the given object."""
 | 
						|
    bl_idname = 'LNSetNameNode'
 | 
						|
    bl_label = 'Set Object Name'
 | 
						|
    lnx_section = 'props'
 | 
						|
    lnx_version = 1
 | 
						|
 | 
						|
    def lnx_init(self, context):
 | 
						|
        self.add_input('LnxNodeSocketAction', 'In')
 | 
						|
        self.add_input('LnxNodeSocketObject', 'Object')
 | 
						|
        self.add_input('LnxStringSocket', 'Name')
 | 
						|
 | 
						|
        self.add_output('LnxNodeSocketAction', 'Out')
 |