LNXSDK/leenkx/blender/lnx/logicnode/camera/LN_get_camera_fov.py

15 lines
402 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class GetCameraFovNode(LnxLogicTreeNode):
"""Returns the field of view (FOV) of the given camera.
@seeNode Set Camera FOV"""
bl_idname = 'LNGetCameraFovNode'
bl_label = 'Get Camera FOV'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Object')
self.add_output('LnxFloatSocket', 'FOV')