forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			460 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			460 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| class GetParentNode(LnxLogicTreeNode):
 | |
|     """Returns the direct parent (nearest in the hierarchy) of the given object.
 | |
| 
 | |
|     @seeNode Set Object Parent"""
 | |
|     bl_idname = 'LNGetParentNode'
 | |
|     bl_label = 'Get Object Parent'
 | |
|     lnx_section = 'relations'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketObject', 'Child')
 | |
| 
 | |
|         self.add_output('LnxNodeSocketObject', 'Parent')
 |