forked from LeenkxTeam/LNXSDK
18 lines
603 B
Python
18 lines
603 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
class SetCurveSplineNode(LnxLogicTreeNode):
|
|
"""Sets curve spline."""
|
|
bl_idname = 'LNSetCurveSplineNode'
|
|
bl_label = 'Set Curve Spline'
|
|
lnx_section = 'set'
|
|
lnx_version = 1
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxNodeSocketObject', 'Curve')
|
|
self.add_input('LnxIntSocket', 'Spline Index')
|
|
self.add_input('LnxBoolSocket', 'Closed')
|
|
self.add_input('LnxIntSocket', 'Resolution', default_value = 12)
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|