armory/blender/arm/logicnode/camera/LN_get_camera_active.py
2020-10-27 19:44:37 +01:00

14 lines
381 B
Python

from arm.logicnode.arm_nodes import *
class ActiveCameraNode(ArmLogicTreeNode):
"""Returns the active camera.
@seeNode Set Active Camera"""
bl_idname = 'LNActiveCameraNode'
bl_label = 'Get Camera Active'
arm_version = 1
def init(self, context):
super(ActiveCameraNode, self).init(context)
self.add_output('ArmNodeSocketObject', 'Camera')