17 lines
		
	
	
		
			597 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			597 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class RemoveParentBoneNode(LnxLogicTreeNode): | ||
|  |     """Removes the given object parent to the given bone.""" | ||
|  |     bl_idname = 'LNRemoveParentBoneNode' | ||
|  |     bl_label = 'Remove Parent Bone' | ||
|  |     lnx_version = 1 | ||
|  |     lnx_section = 'armature' | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxNodeSocketAction', 'In') | ||
|  |         self.add_input('LnxNodeSocketObject', 'Object') | ||
|  |         self.add_input('LnxNodeSocketObject', 'Parent') | ||
|  |         self.add_input('LnxStringSocket', 'Bone', default_value='Bone') | ||
|  | 
 | ||
|  |         self.add_output('LnxNodeSocketAction', 'Out') |