forked from LeenkxTeam/LNXSDK
18 lines
642 B
Python
18 lines
642 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
class AlongCurveNode(LnxLogicTreeNode):
|
|
"""Sets an object along a curve."""
|
|
bl_idname = 'LNAlongCurveNode'
|
|
bl_label = 'Along 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', 'Position')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|