Files
LNXSDK/leenkx/blender/lnx/logicnode/transform/LN_replace_object.py

16 lines
582 B
Python

from lnx.logicnode.lnx_nodes import *
class ReplaceObjectNode(LnxLogicTreeNode):
"""Replace location and rotation between two objects"""
bl_idname = 'LNReplaceObjectNode'
bl_label = 'Replace Object'
lnx_version = 2
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Base')
self.add_input('LnxNodeSocketObject', 'Replace')
self.add_input('LnxBoolSocket', 'Invert')
self.add_input('LnxBoolSocket', 'Scale')
self.add_output('LnxNodeSocketAction', 'Out')