API ReferenceGE Extensionsflowgraphnodesscenecamera
Simple Cam Path (Flowgraph Node)
- **Node Name:** `Simple Cam Path`
Overview
- Node Name:
Simple Cam Path - Category:
once_f_duration - File:
extensions/flowgraph/nodes/scene/camera/cameraPath.lua - Icon: Camera icon
- Color: Camera color
Plays back a camera path defined by a .camPath.json file. Supports looping and reports completion.
Pin Schema
Input Pins
| Pin | Type | Hidden | Description |
|---|---|---|---|
pathName | string | no | Path to the .camPath.json file |
loop | bool | yes (hardcoded) | Whether the path should loop (default: false) |
Output Pins
| Pin | Type | Hidden | Description |
|---|---|---|---|
activated | flow (impulse) | yes | Fires once when the path starts |
inactive | flow | yes | Active when no camera path is running |
duration | number | yes | Current duration of the camera path |
id | number | no | ID of the camera path |
Legacy Pin Names
finished→complete(output)stopped→inactive(output)start→flow(input)
Internals
self.activatedFlag- used to produce a single-frame impulse foractivated.self.durationState-'inactive'→'started'→'finished'.- Uses
self.mgr.modules.camerafor path management. postInit()configures the file picker to filter.camPath.jsonfiles._onDeserialized()restores theloophardcoded value from saved data.
How It Works
- Start (
workOnce) - Finds the camera path by name viamodules.camera:findPath(), starts it withmodules.camera:startPath(), and fires theactivatedimpulse. - Running (
work, statestarted):- Clears the
activatedimpulse after one frame. - Checks if the path is still active via
modules.camera.activePathId. - If the path is complete (
isPathComplete), transitions tofinished. - Outputs the path duration via
getPathDuration. - If the path is no longer active, outputs
inactive = true.
- Clears the
- Duration node - Uses
once_f_durationcategory, so the flowgraph duration system tracks start/finish automatically.
Lua Code Example
-- Play a cinematic camera path:
-- cameraPath (pathName = "cinematics/intro.camPath.json", loop = false)
-- .id → store for later reference
-- duration complete → next scene
-- Loop a showcase orbit:
-- cameraPath (pathName = "showcase/orbit.camPath.json", loop = true)Key Dependencies
self.mgr.modules.camera-findPath(),startPath(),activePathId,isPathComplete(),getPathDuration().camPath.jsonfiles - camera path data format
Additional Methods
C:_executionStarted()
Called when graph execution starts. Used for initialization/reset.
C:drawMiddle(builder, style)
Custom ImGui drawing in the middle section of the node in the editor.
Parameters:
builderstyle
C:init()
Initializes the node, setting up pins and default properties.
C:onNodeReset()
Called when the node is reset.
See 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