17 lines
523 B
Python
17 lines
523 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class SetCameraFovNode(ArmLogicTreeNode):
|
|
"""Sets the field of view (FOV) of the given camera.
|
|
|
|
@seeNode Get Camera FOV"""
|
|
bl_idname = 'LNSetCameraFovNode'
|
|
bl_label = 'Set Camera FOV'
|
|
arm_version = 1
|
|
|
|
def arm_init(self, context):
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('ArmNodeSocketObject', 'Camera')
|
|
self.add_input('ArmFloatSocket', 'FOV', default_value=0.9)
|
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|