API ReferenceGE Extensionsflowgraphnodesthread
Load Project (Flowgraph Node)
- **Node Name:** `Load Project`
Overview
- Node Name:
Load Project - Category:
once_p_duration - File:
extensions/flowgraph/nodes/thread/loadProject.lua
Loads and starts a flowgraph project from a file path, enabling multi-project (threaded) flowgraph execution.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
path | string | File path to the .flow.json project file |
Output Pins
| Pin | Type | Description |
|---|---|---|
id | number | Project ID for further processing (messaging, etc.) |
Behavior
init(mgr)- InitializestargetIdto nil.postInit()- Configures the path pin to accept.flow.jsonfiles via file dialog._executionStarted()/_executionStopped()- ResetstargetId.workOnce()- Resolves the path (tries with and without.flow.jsonextension) and callsself.mgr.modules.thread:startProjectFromFilepath(fp, self). Outputs the project ID.
How It Works
- Set the
pathto a flowgraph project file (e.g."flowgraphEditor/myProject"). - On execution, the node loads and starts the project as a child thread.
- The output
idcan be used withsendMessage/receiveMessagenodes for inter-project communication.
-- The node resolves the path and starts the project:
local fp = self.mgr:getRelativeAbsolutePath({
path,
path .. ".flow.json"
})
local projectId = self.mgr.modules.thread:startProjectFromFilepath(fp, self)Key Dependencies
self.mgr.modules.thread- Thread module for managing child projectsself.mgr:getRelativeAbsolutePath()- Path resolution utility
See Also
- Receive Message (Flowgraph Node) - Related reference
- Send Message (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide