API ReferenceGE Extensionsflowgraphnodesscenecameraprocedural
Procedural Static CamPath (Flowgraph Node)
- **Node Name:** `Procedural Static CamPath`
Overview
- Node Name:
Procedural Static CamPath - Category:
once_p_duration - File:
extensions/flowgraph/nodes/scene/camera/procedural/procCamPathPosRot.lua
Creates a camera path that holds a static position and rotation. The path consists of two identical markers at the same position/rotation, effectively freezing the camera in place for the path's duration.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
pos | vec3 | Camera position |
rot | quat | Camera rotation |
Output Pins
| Pin | Type | Description |
|---|---|---|
pathName | string | Name of the created camera path |
Behavior
workOnce()- Creates a camera path with two identical markers:- Builds a marker template with FOV 60,
movingEnd/movingStart= true,trackPosition= false. - Clones the template twice with the input
posandrot, both attime = 1000. - Registers the path via
self.mgr.modules.camera:addCustomPath(name, path, true). - Outputs the generated unique path name.
- Builds a marker template with FOV 60,
Key Dependencies
self.mgr.modules.camera:getUniqueName()- Generates a unique path identifierself.mgr.modules.camera:addCustomPath()- Registers a custom camera path
How It Works
This node procedurally generates a "static" camera path - useful for cutscenes where you want the camera locked at a specific world position and orientation. The path has a long duration (1000 time units) with two identical keyframes, so the camera stays perfectly still.
Example Usage
-- In flowgraph: provide a position and rotation, then start the resulting path
-- Wire pos/rot from scene objects or hardcoded values
-- Connect pathName output to a Start Cam Path node to activate itSee Also
- Procedural Direct CamPath (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide