Files
LNXSDK/leenkx/blender/lnx/logicnode/signal/LN_global_signal.py

26 lines
746 B
Python

from lnx.logicnode.lnx_nodes import *
class GlobalSignalNode(LnxLogicTreeNode):
"""Gets or creates a global Signal by name.
Global Signals are stored in a static registry and can be accessed from
any logic tree in the scene. Provide a unique name to identify the signal.
Use this for communication between different objects or logic trees without
needing to pass Signal references directly.
@seeNode Signal
@seeNode On Signal
@seeNode Emit Signal"""
bl_idname = 'LNGlobalSignalNode'
bl_label = 'Global Signal'
lnx_version = 1
lnx_section = 'signal'
def lnx_init(self, context):
self.add_input('LnxStringSocket', 'Property')
self.add_output('LnxDynamicSocket', 'Signal')