armory/blender/arm/logicnode/native/LN_call_haxe_static.py
2020-09-28 15:58:41 +02:00

20 lines
694 B
Python

from arm.logicnode.arm_nodes import *
class CallHaxeStaticNode(ArmLogicTreeNode):
"""Call a static haxe function.
@input Function: the full module path to the function.
@output Result: the result of the function."""
bl_idname = 'LNCallHaxeStaticNode'
bl_label = 'Call Haxe Static'
arm_version = 1
def init(self, context):
super(CallHaxeStaticNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Function')
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketShader', 'Result')
add_node(CallHaxeStaticNode, category=PKG_AS_CATEGORY, section='haxe')