armory/blender/arm/logicnode/action_set_camera_fov.py

20 lines
618 B
Python
Raw Normal View History

2017-12-06 22:20:42 +01:00
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class SetCameraFovNode(Node, ArmLogicTreeNode):
'''Set camera FOV node'''
bl_idname = 'LNSetCameraFovNode'
bl_label = 'Set Camera FOV'
bl_icon = 'GAME'
def init(self, context):
self.inputs.new('ArmNodeSocketAction', 'In')
self.inputs.new('ArmNodeSocketObject', 'Object')
self.inputs.new('NodeSocketFloat', 'FOV')
2017-12-16 15:13:10 +01:00
self.inputs[-1].default_value = 0.85
2017-12-06 22:20:42 +01:00
self.outputs.new('ArmNodeSocketAction', 'Out')
add_node(SetCameraFovNode, category='Action')