forked from LeenkxTeam/LNXSDK
		
	Add leenkx/blender/lnx/logicnode/object/LN_set_object_delayed_location.py
This commit is contained in:
		@ -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"
 | 
			
		||||
		Reference in New Issue
	
	Block a user