22 lines
		
	
	
		
			593 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			593 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| 
 | |
| class FunctionOutputNode(LnxLogicTreeNode):
 | |
|     """Sets the return value for the given function.
 | |
| 
 | |
|     @seeNode Function"""
 | |
|     bl_idname = 'LNFunctionOutputNode'
 | |
|     bl_label = 'Function Output'
 | |
|     lnx_section = 'function'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketAction', 'In')
 | |
|         self.add_input('LnxDynamicSocket', 'Value')
 | |
| 
 | |
|     function_name: StringProperty(name="Name")
 | |
| 
 | |
|     def draw_buttons(self, context, layout):
 | |
|         row = layout.row(align=True)
 | |
|         row.prop(self, 'function_name')
 |