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

16 lines
499 B
Python

from arm.logicnode.arm_nodes import *
class SetCameraNode(ArmLogicTreeNode):
"""Use to set the 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)