forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
22
leenkx/blender/lnx/logicnode/curve/LN_follow_curve.py
Normal file
22
leenkx/blender/lnx/logicnode/curve/LN_follow_curve.py
Normal file
@ -0,0 +1,22 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class FollowCurveNode(LnxLogicTreeNode):
|
||||
"""Sets an object to follow a curve."""
|
||||
bl_idname = 'LNFollowCurveNode'
|
||||
bl_label = 'Follow Curve'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxNodeSocketObject', 'Object')
|
||||
self.add_input('LnxNodeSocketObject', 'Curve')
|
||||
self.add_input('LnxIntSocket', 'Spline Index')
|
||||
self.add_input('LnxStringSocket', 'Forward Axis', default_value = 'X')
|
||||
self.add_input('LnxFloatSocket', 'Speed')
|
||||
self.add_input('LnxBoolSocket', 'Forward', default_value = True)
|
||||
self.add_input('LnxBoolSocket', 'Cyclic')
|
||||
self.add_input('LnxFloatSocket', 'Start')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
self.add_output('LnxNodeSocketAction', 'Cycle')
|
||||
self.add_output('LnxFloatSocket', 'Progress')
|
||||
Reference in New Issue
Block a user