forked from LeenkxTeam/LNXSDK
19 lines
721 B
Python
19 lines
721 B
Python
|
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
|
||
|
|
class DeformCurveNode(LnxLogicTreeNode):
|
||
|
|
"""Sets an object to deform using a curve."""
|
||
|
|
bl_idname = 'LNDeformCurveNode'
|
||
|
|
bl_label = 'Deform 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', 'Start')
|
||
|
|
self.add_input('LnxFloatSocket', 'End', default_value = 1.0)
|
||
|
|
|
||
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|