LNXSDK/leenkx/blender/lnx/logicnode/event/LN_on_application_state.py

13 lines
470 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class OnApplicationStateNode(LnxLogicTreeNode):
"""Listens to different application state changes."""
bl_idname = 'LNOnApplicationStateNode'
bl_label = 'On Application State'
lnx_version = 1
def lnx_init(self, context):
self.add_output('LnxNodeSocketAction', 'On Foreground')
self.add_output('LnxNodeSocketAction', 'On Background')
self.add_output('LnxNodeSocketAction', 'On Shutdown')