96aa0ee890
This allows to listen for socket updates for the live patch system
23 lines
643 B
Python
23 lines
643 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
class FunctionOutputNode(ArmLogicTreeNode):
|
|
"""Sets the return value for the given function.
|
|
|
|
@seeNode Function"""
|
|
bl_idname = 'LNFunctionOutputNode'
|
|
bl_label = 'Function Output'
|
|
arm_section = 'function'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(FunctionOutputNode, self).init(context)
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('ArmDynamicSocket', 'Value')
|
|
|
|
function_name: StringProperty(name="Name")
|
|
|
|
def draw_buttons(self, context, layout):
|
|
row = layout.row(align=True)
|
|
row.prop(self, 'function_name')
|