LNXSDK/leenkx/blender/lnx/logicnode/scene/LN_spawn_scene.py
2025-01-22 16:18:30 +01:00

16 lines
501 B
Python

from lnx.logicnode.lnx_nodes import *
class SpawnSceneNode(LnxLogicTreeNode):
"""Spawns the given scene."""
bl_idname = 'LNSpawnSceneNode'
bl_label = 'Spawn Scene'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Scene')
self.add_input('LnxDynamicSocket', 'Transform')
self.add_output('LnxNodeSocketAction', 'Out')
self.add_output('LnxNodeSocketObject', 'Root')