API ReferenceGE Extensionsflowgraphnodesutil
Get Project Info
- **Node Name:** `Get Project Info`
Overview
- Node Name:
Get Project Info - Category:
once_instant - File:
extensions/flowgraph/nodes/util/project.lua
Provides metadata about the current flowgraph project: name, description, file info, associated level, and current graph details.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
id | number (hidden) | Numeric ID of the project manager |
name | string | Name of the project |
description | string | Description of the project |
hasFilename | flow (hidden) | Fires if the project was loaded from a file |
filename | string (hidden) | Filename without .flow.json extension |
filepath | string (hidden) | Full save path without .flow.json extension |
hasLevel | flow (hidden) | Fires if the project file is inside a level folder |
level | string (hidden) | Level identifier (if applicable) |
graph | string (hidden) | Name of the current graph |
graphId | number (hidden) | ID of the current graph |
Internals
Key Methods
| Method | Description |
|---|---|
init(mgr) | Disables clearOutPinsOnStart |
workOnce() | Reads project metadata from self.graph.mgr and self.mgr |
How It Works
- Reads
id,name, anddescriptionfrom the flowgraph manager. - If the project has a saved filename (
self.mgr.savedFilename):- Sets
hasFilenameflow to true. - Splits the path to extract filename and full filepath.
- Sets
- If the project's save directory is inside a level folder:
- Uses
path.levelFromPath()to detect the level. - Sets
hasLevelflow and outputs the level identifier.
- Uses
- Outputs current graph name and ID.
Usage Example
-- Display project info in a debug HUD:
-- [Get Project Info] → name → [Display Text]
-- → description → [Display Text]
-- Conditionally load resources based on associated level:
-- [Get Project Info] → hasLevel → [Load Level Assets]
-- → level → [Get Level Path]
-- Check if project has been saved:
-- [Get Project Info] → hasFilename → [Log] "Project saved as: " + filenameKey Dependencies
self.graph.mgr- reference to the flowgraph manager (id, name, description)self.mgr.savedFilename/self.mgr.savedDir- file metadatapath.splitWithoutExt()- splits a path into directory, filename, and extensionpath.levelFromPath()- extracts a level identifier from a directory path
See Also
- Route Distance (Flowgraph Node) - Related reference
- Closest Road (Flowgraph Node) - Related reference
- Custom Lua (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide