armory/blender/arm/logicnode/camera/LN_set_camera_fov.py
2020-10-05 14:55:56 -03:00

19 lines
626 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 init(self, context):
super(SetCameraFovNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Camera')
self.add_input('NodeSocketFloat', 'FOV', default_value=0.85)
self.add_output('ArmNodeSocketAction', 'Out')
add_node(SetCameraFovNode, category=PKG_AS_CATEGORY)