96aa0ee890
This allows to listen for socket updates for the live patch system
18 lines
571 B
Python
18 lines
571 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 init(self, context):
|
|
super(SetCameraFovNode, self).init(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')
|