LNXSDK/leenkx/blender/lnx/logicnode/logic/LN_function_output.py
2025-01-22 16:18:30 +01:00

22 lines
593 B
Python

from lnx.logicnode.lnx_nodes import *
class FunctionOutputNode(LnxLogicTreeNode):
"""Sets the return value for the given function.
@seeNode Function"""
bl_idname = 'LNFunctionOutputNode'
bl_label = 'Function Output'
lnx_section = 'function'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Value')
function_name: StringProperty(name="Name")
def draw_buttons(self, context, layout):
row = layout.row(align=True)
row.prop(self, 'function_name')