API ReferenceGE Extensionsflowgraphnodesscenecamera
Get Camera FOV (Flowgraph Node)
- **Node Name:** `Get Camera FOV`
Overview
- Node Name:
Get Camera FOV - Category:
repeat_instant - File:
extensions/flowgraph/nodes/scene/camera/getCameraFOV.lua
Gets the camera's current Field of View (FOV) as an angle in degrees. Automatically switches to free camera if not already active.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
curFOV | number | The current FOV as an angle in degrees |
Behavior
work()- Called every frame:- If the camera is not in free camera mode, switches to it via
commands.setFreeCamera(). - Reads the current FOV using
core_camera.getFovDeg()and outputs it.
- If the camera is not in free camera mode, switches to it via
drawMiddle()- Displays the current FOV value in the node editor UI.
Key Dependencies
commands.isFreeCamera()/commands.setFreeCamera()- Free camera detection and activationcore_camera.getFovDeg()- Returns current FOV in degrees
How It Works
This is a simple provider node that continuously outputs the current camera FOV. It forces free camera mode because FOV reading is only meaningful in that context.
Example Usage
-- Use in flowgraph to read FOV and conditionally adjust scene elements
-- Wire curFOV output to a comparison node to check if FOV is within a range
-- Pair with Set Camera FOV to create smooth FOV transitionsSee Also
- Camera Transform (Flowgraph Node) - Related reference
- Camera Look at Position (Flowgraph Node) - Related reference
- Camera Auto Circle (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide