armory/blender/arm/logicnode/camera/LN_get_active_camera.py

14 lines
419 B
Python

from arm.logicnode.arm_nodes import *
class ActiveCameraNode(ArmLogicTreeNode):
"""Get the active camera of the active scene."""
bl_idname = 'LNActiveCameraNode'
bl_label = 'Get Active Camera'
arm_version = 1
def init(self, context):
super(ActiveCameraNode, self).init(context)
self.add_output('ArmNodeSocketObject', 'Object')
add_node(ActiveCameraNode, category=PKG_AS_CATEGORY)