forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			649 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			649 B
		
	
	
	
		
			Python
		
	
	
	
	
	
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')
 |