LNXSDK/leenkx/blender/lnx/logicnode/camera/LN_set_camera_fov.py
2025-01-22 16:18:30 +01:00

17 lines
523 B
Python

from lnx.logicnode.lnx_nodes import *
class SetCameraFovNode(LnxLogicTreeNode):
"""Sets the field of view (FOV) of the given camera.
@seeNode Get Camera FOV"""
bl_idname = 'LNSetCameraFovNode'
bl_label = 'Set Camera FOV'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Camera')
self.add_input('LnxFloatSocket', 'FOV', default_value=0.9)
self.add_output('LnxNodeSocketAction', 'Out')