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

19 lines
647 B
Python

from lnx.logicnode.lnx_nodes import *
class GetCurveDataNode(LnxLogicTreeNode):
"""Gets curve data."""
bl_idname = 'LNGetCurveDataNode'
bl_label = 'Get Curve Data'
lnx_section = 'get'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Curve')
self.add_output('LnxIntSocket', 'Splines Length')
self.add_output('LnxIntSocket', 'Equidistant Samples')
self.add_output('LnxBoolSocket', 'Draw')
self.add_output('LnxFloatSocket', 'Strength')
self.add_output('LnxColorSocket', 'Color')
self.add_output('LnxNodeSocketObject', 'Curve Mesh')