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

11 lines
311 B
Python

from lnx.logicnode.lnx_nodes import *
class SceneRootNode(LnxLogicTreeNode):
"""Returns the root object of the current scene."""
bl_idname = 'LNSceneRootNode'
bl_label = 'Get Scene Root'
lnx_version = 1
def lnx_init(self, context):
self.add_output('LnxNodeSocketObject', 'Object')