armory/blender/arm/logicnode/camera/LN_set_camera_active.py

17 lines
475 B
Python
Raw Normal View History

2018-11-10 20:39:51 +01:00
from arm.logicnode.arm_nodes import *
class SetCameraNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Sets the active camera.
2020-09-28 15:58:41 +02:00
@seeNode Get Active Camera"""
2018-11-10 20:39:51 +01:00
bl_idname = 'LNSetCameraNode'
2020-09-29 18:38:17 +02:00
bl_label = 'Set Camera Active'
arm_version = 1
2018-11-10 20:39:51 +01:00
def init(self, context):
super(SetCameraNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('ArmNodeSocketAction', 'In')
2020-09-20 20:10:01 +02:00
self.add_input('ArmNodeSocketObject', 'Camera')
2020-11-17 16:01:15 +01:00
2020-09-08 21:49:02 +02:00
self.add_output('ArmNodeSocketAction', 'Out')