forked from LeenkxTeam/LNXSDK
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			431 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			431 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from lnx.logicnode.lnx_nodes import *
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class GetTraitNameNode(LnxLogicTreeNode):
							 | 
						||
| 
								 | 
							
								    """Returns the name and the class type of the given trait."""
							 | 
						||
| 
								 | 
							
								    bl_idname = 'LNGetTraitNameNode'
							 | 
						||
| 
								 | 
							
								    bl_label = 'Get Trait Name'
							 | 
						||
| 
								 | 
							
								    lnx_version = 1
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    def lnx_init(self, context):
							 | 
						||
| 
								 | 
							
								        self.add_input('LnxDynamicSocket', 'Trait')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxStringSocket', 'Name')
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxStringSocket', 'Class Type')
							 |