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

17 lines
504 B
Python
Raw Normal View History

2017-12-06 22:20:42 +01:00
from arm.logicnode.arm_nodes import *
class GetCameraFovNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Returns the field of view (FOV) of the given camera.
2020-09-28 15:58:41 +02:00
@seeNode Set Camera FOV"""
2017-12-06 22:20:42 +01:00
bl_idname = 'LNGetCameraFovNode'
bl_label = 'Get Camera FOV'
arm_version = 1
2017-12-06 22:20:42 +01:00
def init(self, context):
super(GetCameraFovNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('NodeSocketFloat', 'FOV')
2017-12-06 22:20:42 +01:00
add_node(GetCameraFovNode, category=PKG_AS_CATEGORY)