armory/blender/arm/logicnode/camera/LN_set_camera_fov.py
2021-07-20 20:53:37 +02:00

17 lines
523 B
Python

from arm.logicnode.arm_nodes import *
class SetCameraFovNode(ArmLogicTreeNode):
"""Sets the field of view (FOV) of the given camera.
@seeNode Get Camera FOV"""
bl_idname = 'LNSetCameraFovNode'
bl_label = 'Set Camera FOV'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Camera')
self.add_input('ArmFloatSocket', 'FOV', default_value=0.9)
self.add_output('ArmNodeSocketAction', 'Out')