Files
LNXSDK/leenkx/blender/lnx/logicnode/curve/LN_get_curve_spline.py

17 lines
535 B
Python

from lnx.logicnode.lnx_nodes import *
class GetCurveSplineNode(LnxLogicTreeNode):
"""Gets curve spline."""
bl_idname = 'LNGetCurveSplineNode'
bl_label = 'Get Curve Spline'
lnx_section = 'get'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Curve')
self.add_input('LnxIntSocket', 'Spline Index')
self.add_output('LnxNodeSocketArray', 'Points')
self.add_output('LnxBoolSocket', 'Closed')
self.add_output('LnxIntSocket', 'Resolution')