diff --git a/leenkx/blender/lnx/logicnode/object/LN_set_object_delayed_location.py b/leenkx/blender/lnx/logicnode/object/LN_set_object_delayed_location.py new file mode 100644 index 0000000..7a40091 --- /dev/null +++ b/leenkx/blender/lnx/logicnode/object/LN_set_object_delayed_location.py @@ -0,0 +1,28 @@ +from lnx.logicnode.lnx_nodes import * +import bpy +from bpy.props import BoolProperty + +class LNSetObjectDelayedLocationNode(LnxLogicTreeNode): + bl_idname = 'LNSetObjectDelayedLocationNode' + bl_label = 'Set Object Delayed Location' + lnx_section = 'props' + lnx_version = 1 + + use_local_space: BoolProperty( + name="Use Local Space", + description="Move follower in local space instead of world space", + default=False + ) + + def lnx_init(self, context): + self.inputs.new('LnxNodeSocketAction', 'In') + self.inputs.new('LnxNodeSocketObject', 'Source Object') + self.inputs.new('LnxNodeSocketObject', 'Target Object') + self.inputs.new('LnxFloatSocket', 'Delay') + self.outputs.new('LnxNodeSocketAction', 'Out') + + def draw_buttons(self, context, layout): + layout.prop(self, 'use_local_space') + + def draw_label(self): + return "Set Object Delayed Location"