forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
16
leenkx/blender/lnx/logicnode/camera/LN_set_camera_fov.py
Normal file
16
leenkx/blender/lnx/logicnode/camera/LN_set_camera_fov.py
Normal file
@ -0,0 +1,16 @@
|
||||
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')
|
Reference in New Issue
Block a user