project
Project lifecycle, versioned objects, and transactions.
7 functions / 12 types
Modules
Index
| Function | Description |
|---|---|
| EnterVersionedMode | Enter versioned mode with empty versioned state. Fails if already in versioned mode. |
| ExitVersionedMode | Exit versioned mode and return to a scene the engine manages directly. Fails if not already in versioned mode. |
| Redo | Redo the most recently undone change. Fails when not in versioned mode. |
| ReenterVersionedMode | Clear the versioned state and all existing objects. Fails if not already in versioned mode. |
| SetTimestamp | |
| Undo | Undo the most recent change. Also discards any changes still in progress that have not yet taken effect. Fails when not in versioned mode. |
| WaitForSceneSync | Wait until the scene has caught up with everything committed so far. |
| Type | Description |
|---|---|
| EnterVersionedMode | Enter versioned mode with empty versioned state. Fails if already in versioned mode. |
| ExitVersionedMode | Exit versioned mode and return to a scene the engine manages directly. Fails if not already in versioned mode. |
| LocalPath | A path on the machine running the engine, carried as UTF-8 text. |
| LocalProjectList | Every local project found in a directory, as returned by GetLocalProjectList. |
| LocalProjectMeta | What a .spatial file records about the project it holds. |
| Redo | Redo the most recently undone change. Fails when not in versioned mode. |
| ReenterVersionedMode | Clear the versioned state and all existing objects. Fails if not already in versioned mode. |
| RemoteProjectList | Every remote project visible to the signed-in user, as returned by GetRemoteProjectList. |
| RemoteProjectMeta | What the server records about one project it hosts. |
| SetTimestamp | |
| Undo | Undo the most recent change. Also discards any changes still in progress that have not yet taken effect. Fails when not in versioned mode. |
| WaitForSceneSync | Wait until the scene has caught up with everything committed so far. |
EnterVersionedMode
RPC
EnterVersionedMode(request: project.EnterVersionedMode) -> google.protobuf.EmptyEnter versioned mode with empty versioned state. Fails if already in versioned mode.
Awaiting this task waits until the scene is quiescent.
Service method: spatialengine.v1.project.Project.EnterVersionedMode.
Returns google.protobuf.Empty.
ExitVersionedMode
RPC
ExitVersionedMode(request: project.ExitVersionedMode) -> google.protobuf.EmptyExit versioned mode and return to a scene the engine manages directly. Fails if not already in versioned mode.
Awaiting this task waits until the scene is quiescent (queued despawns applied, autosync idle). Drop the handle to fire and forget.
Service method: spatialengine.v1.project.Project.ExitVersionedMode.
Returns google.protobuf.Empty.
Redo
RPC
Redo(request: project.Redo) -> google.protobuf.EmptyRedo the most recently undone change. Fails when not in versioned mode.
Service method: spatialengine.v1.project.Project.Redo.
Returns google.protobuf.Empty.
ReenterVersionedMode
RPC
ReenterVersionedMode(request: project.ReenterVersionedMode) -> google.protobuf.EmptyClear the versioned state and all existing objects. Fails if not already in versioned mode.
Awaiting this task waits until the scene is quiescent.
Service method: spatialengine.v1.project.Project.ReenterVersionedMode.
Returns google.protobuf.Empty.
SetTimestamp
RPC
SetTimestamp(request: project.SetTimestamp) -> google.protobuf.EmptyService method: spatialengine.v1.project.Project.SetTimestamp.
Returns google.protobuf.Empty.
timestamp_nanos : int64
Timestamp to show in the active project, as Unix nanoseconds.
Undo
RPC
Undo(request: project.Undo) -> google.protobuf.EmptyUndo the most recent change. Also discards any changes still in progress that have not yet taken effect. Fails when not in versioned mode.
Service method: spatialengine.v1.project.Project.Undo.
Returns google.protobuf.Empty.
WaitForSceneSync
RPC
WaitForSceneSync(request: project.WaitForSceneSync) -> google.protobuf.EmptyWait until the scene has caught up with everything committed so far.
After an Operation commits, the scene finishes updating asynchronously. Submit this Task before reading scene state an Operation should have produced. Other in-flight scene work (from concurrent Operations, undo/redo, or project loading) delays the return.
Service method: spatialengine.v1.project.Project.WaitForSceneSync.
Returns google.protobuf.Empty.
EnterVersionedMode
Message
Enter versioned mode with empty versioned state. Fails if already in versioned mode.
Awaiting this task waits until the scene is quiescent.
ExitVersionedMode
Message
Exit versioned mode and return to a scene the engine manages directly. Fails if not already in versioned mode.
Awaiting this task waits until the scene is quiescent (queued despawns applied, autosync idle). Drop the handle to fire and forget.
LocalPath
Message
A path on the machine running the engine, carried as UTF-8 text.
A host path that is not valid UTF-8 loses the offending bytes on the way out, and does not come back as the path it started as.
path : string
LocalProjectList
Message
Every local project found in a directory, as returned by
GetLocalProjectList.
projects optional : list[project.LocalProjectMeta]
The projects, in directory-traversal order.
LocalProjectMeta
Message
What a .spatial file records about the project it holds.
uuid : string
The project’s identifier as a hyphenated UUID string.
dir optional : project.LocalPath
Directory holding the project’s .spatial file.
name : string
Human-facing project name.
author : string
Who the project is attributed to.
point_count optional : int64
Total points across the project’s models, when known.
modified_date optional : datetime.Timestamp
When the project was last written.
created_date optional : datetime.Timestamp
When the project was first created.
Redo
Message
Redo the most recently undone change. Fails when not in versioned mode.
ReenterVersionedMode
Message
Clear the versioned state and all existing objects. Fails if not already in versioned mode.
Awaiting this task waits until the scene is quiescent.
RemoteProjectList
Message
Every remote project visible to the signed-in user, as returned by
GetRemoteProjectList.
projects optional : list[project.RemoteProjectMeta]
The projects, in the order the server listed them.
RemoteProjectMeta
Message
What the server records about one project it hosts.
dt_uuid : string
The project’s digital-twin identifier as a hyphenated UUID string.
project_name : string
Human-facing project name.
author optional : string
Who the project is attributed to, when the server reports it.
created_at optional : datetime.Timestamp
When the project was created.
updated_at optional : datetime.Timestamp
When the project was last updated.
point_count optional : int64
Total points across the project’s models, when known.
total_aabb optional : math.Aabb
Bounding box covering every model in the project, when known.
public : bool
Whether the project is publicly visible.
SetTimestamp
Message
timestamp_nanos : int64
Timestamp to show in the active project, as Unix nanoseconds.
Undo
Message
Undo the most recent change. Also discards any changes still in progress that have not yet taken effect. Fails when not in versioned mode.
WaitForSceneSync
Message
Wait until the scene has caught up with everything committed so far.
After an Operation commits, the scene finishes updating asynchronously. Submit this Task before reading scene state an Operation should have produced. Other in-flight scene work (from concurrent Operations, undo/redo, or project loading) delays the return.