armory/blender/arm/logicnode/camera/LN_get_active_camera.py
2020-09-23 17:12:25 -03:00

14 lines
410 B
Python

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