armory/blender/arm/logicnode/camera/LN_get_camera_fov.py
Moritz Brückner 96aa0ee890 Use custom sockets for default data types
This allows to listen for socket updates for the live patch system
2021-07-10 21:46:44 +02:00

16 lines
450 B
Python

from arm.logicnode.arm_nodes import *
class GetCameraFovNode(ArmLogicTreeNode):
"""Returns the field of view (FOV) of the given camera.
@seeNode Set Camera FOV"""
bl_idname = 'LNGetCameraFovNode'
bl_label = 'Get Camera FOV'
arm_version = 1
def init(self, context):
super(GetCameraFovNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmFloatSocket', 'FOV')