20 lines
703 B
Python
20 lines
703 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class CallHaxeStaticNode(ArmLogicTreeNode):
|
|
"""Calls the given 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')
|