forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
21
leenkx/blender/lnx/logicnode/native/LN_expression.py
Normal file
21
leenkx/blender/lnx/logicnode/native/LN_expression.py
Normal file
@ -0,0 +1,21 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class ExpressionNode(LnxLogicTreeNode):
|
||||
"""Evaluates a Haxe expression and returns its output.
|
||||
|
||||
@output Result: the result of the expression."""
|
||||
bl_idname = 'LNExpressionNode'
|
||||
bl_label = 'Expression'
|
||||
lnx_version = 1
|
||||
lnx_section = 'haxe'
|
||||
|
||||
property0: HaxeStringProperty('property0', name='', default='')
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
self.add_output('LnxDynamicSocket', 'Result')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop(self, 'property0')
|
Reference in New Issue
Block a user