armory/blender/arm/logicnode/camera/LN_set_camera_active.py
2020-11-17 12:01:15 -03:00

17 lines
475 B
Python

from arm.logicnode.arm_nodes import *
class SetCameraNode(ArmLogicTreeNode):
"""Sets the active camera.
@seeNode Get Active Camera"""
bl_idname = 'LNSetCameraNode'
bl_label = 'Set Camera Active'
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')