LNXSDK/leenkx/blender/lnx/logicnode/camera/LN_get_camera_active.py

13 lines
333 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class ActiveCameraNode(LnxLogicTreeNode):
"""Returns the active camera.
@seeNode Set Active Camera"""
bl_idname = 'LNActiveCameraNode'
bl_label = 'Get Camera Active'
lnx_version = 1
def lnx_init(self, context):
self.add_output('LnxNodeSocketObject', 'Camera')