armory/blender/arm/logicnode/camera/LN_set_active_camera.py
2020-09-28 15:58:41 +02:00

18 lines
524 B
Python

from arm.logicnode.arm_nodes import *
class SetCameraNode(ArmLogicTreeNode):
"""Set the active camera.
@seeNode Get Active Camera"""
bl_idname = 'LNSetCameraNode'
bl_label = 'Set Active Camera'
arm_version = 1
def init(self, context):
super(SetCameraNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Camera')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(SetCameraNode, category=PKG_AS_CATEGORY)