LNXSDK/leenkx/blender/lnx/logicnode/scene/LN_set_scene_active.py

15 lines
445 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SetSceneNode(LnxLogicTreeNode):
"""Sets the active scene."""
bl_idname = 'LNSetSceneNode'
bl_label = 'Set Scene Active'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Scene')
self.add_output('LnxNodeSocketAction', 'Out')
self.add_output('LnxNodeSocketObject', 'Root')