project.object
Create and edit versioned project objects and their components.
7 functions / 53 types
Modules
| Module |
|---|
project.object.block_model |
project.object.mesh |
project.object.name |
project.object.point_cloud |
project.object.polyline |
project.object.shape |
project.object.transform |
project.object.visibility |
Index
| Function | Description |
|---|---|
| Despawn | Despawn a project object and all its descendants. |
| FromScene | Finds the project node associated with a scene node. |
| GetChildren | Get the children of a given ProjectNodeSchema |
| GetParent | Get the parent of a given scene object if it exists |
| SetParent | Set the parent of a given ProjectNodeSchema |
| Spawn | Spawn a new blank project object |
| ToScene | Finds the current scene node associated with a project node. |
| Type | Description |
|---|---|
| Despawn | Despawn a project object and all its descendants. |
| FromScene | Finds the project node associated with a scene node. |
| FromSceneResponse | |
| GetChildren | Get the children of a given ProjectNodeSchema |
| GetChildrenResponse | |
| GetParent | Get the parent of a given scene object if it exists |
| GetParentResponse | |
| ProjectArrow | A 3D Arrow. |
| ProjectAttributeBasedAppearance | Colours a model by one of its attributes, through a named colour ramp. |
| ProjectAttributeRange | Numeric range an attribute-driven color ramp is stretched across. |
| ProjectBlockModel | A point cloud representation. |
| ProjectBlockModelAppearance | How a point cloud is drawn. |
| ProjectBlockModelAttributeRamp | Point cloud colored by a named attribute through a color ramp. |
| ProjectBlockModelColor | Point cloud drawn in one flat color. |
| ProjectBlockModelGradient | Point cloud colored by a ramp along a world-space axis. |
| ProjectBlockModelMatCap | Point cloud shaded with a named matcap texture. |
| ProjectCapsule | A 3D Capsule. |
| ProjectCube | A 3D Cube. |
| ProjectGeometry | |
| ProjectGradientExtentsKind | Whether a gradient spans the object or the whole scene. |
| ProjectLineDash | |
| ProjectLineJoin | |
| ProjectLineRound | |
| ProjectLineStyle | |
| ProjectMesh | A point cloud representation. |
| ProjectMeshAppearance | How a point cloud is drawn. |
| ProjectMeshAttributeRamp | Point cloud colored by a named attribute through a color ramp. |
| ProjectMeshColor | Point cloud drawn in one flat color. |
| ProjectMeshGradient | Point cloud colored by a ramp along a world-space axis. |
| ProjectMeshMatCap | Point cloud shaded with a named matcap texture. |
| ProjectName | A name for a ProjectNode. |
| ProjectNoFilter | Filter that draws every element. |
| ProjectNode | The ID of a ProjectNode. |
| ProjectPointCloud | A point cloud representation. |
| ProjectPointCloudAppearance | How a point cloud is drawn. |
| ProjectPointCloudAttributeRamp | Point cloud colored by a named attribute through a color ramp. |
| ProjectPointCloudColor | Point cloud drawn in one flat color. |
| ProjectPointCloudGradient | Point cloud colored by a ramp along a world-space axis. |
| ProjectPointCloudMatCap | Point cloud shaded with a named matcap texture. |
| ProjectPolyline | |
| ProjectPolylineAppearance | |
| ProjectShape | |
| ProjectShapeAppearance | How a shape is drawn. |
| ProjectSphere | A 3D Sphere. |
| ProjectTransform | Where an object sits, how it is turned, and its scale. All parts are double precision. |
| ProjectValueRangeFilter | Filter keeping elements whose attribute falls inside [min, max]. |
| ProjectVisibility | Whether an object is drawn. |
| ProjectVisibilityKind | Whether an object is drawn, hidden, or follows its parent. |
| ProjectVolumetricFilter | Which elements of a model are drawn. |
| SetParent | Set the parent of a given ProjectNodeSchema |
| Spawn | Spawn a new blank project object |
| ToScene | Finds the current scene node associated with a project node. |
| ToSceneResponse |
Despawn
RPC
Despawn(request: project.object.Despawn) -> google.protobuf.EmptyDespawn a project object and all its descendants.
Service method: spatialengine.v1.project.object.ProjectObject.Despawn.
Returns google.protobuf.Empty.
node : project.object.ProjectNode
FromScene
RPC
FromScene(request: project.object.FromScene) -> project.object.FromSceneResponseFinds the project node associated with a scene node.
Service method: spatialengine.v1.project.object.ProjectObject.FromScene.
Returns project.object.FromSceneResponse.
node : scene.Node
GetChildren
RPC
GetChildren(request: project.object.GetChildren) -> project.object.GetChildrenResponseGet the children of a given ProjectNodeSchema
Service method: spatialengine.v1.project.object.ProjectObject.GetChildren.
Returns project.object.GetChildrenResponse.
node : project.object.ProjectNode
GetParent
RPC
GetParent(request: project.object.GetParent) -> project.object.GetParentResponseGet the parent of a given scene object if it exists
Service method: spatialengine.v1.project.object.ProjectObject.GetParent.
Returns project.object.GetParentResponse.
node : project.object.ProjectNode
SetParent
RPC
SetParent(request: project.object.SetParent) -> google.protobuf.EmptySet the parent of a given ProjectNodeSchema
Service method: spatialengine.v1.project.object.ProjectObject.SetParent.
Returns google.protobuf.Empty.
node : project.object.ProjectNode
parent optional : project.object.ProjectNode
Spawn
RPC
Spawn(request: project.object.Spawn) -> project.object.ProjectNodeSpawn a new blank project object
Service method: spatialengine.v1.project.object.ProjectObject.Spawn.
Returns project.object.ProjectNode.
ToScene
RPC
ToScene(request: project.object.ToScene) -> project.object.ToSceneResponseFinds the current scene node associated with a project node.
Service method: spatialengine.v1.project.object.ProjectObject.ToScene.
Returns project.object.ToSceneResponse.
node : project.object.ProjectNode
Despawn
Message
Despawn a project object and all its descendants.
node : project.object.ProjectNode
FromScene
Message
Finds the project node associated with a scene node.
node : scene.Node
FromSceneResponse
Message
value optional : project.object.ProjectNode
GetChildren
Message
Get the children of a given ProjectNodeSchema
node : project.object.ProjectNode
GetChildrenResponse
Message
value optional : list[project.object.ProjectNode]
GetParent
Message
Get the parent of a given scene object if it exists
node : project.object.ProjectNode
GetParentResponse
Message
value optional : project.object.ProjectNode
ProjectArrow
Message
A 3D Arrow.
length : double
Length of the arrow
ProjectAttributeBasedAppearance
Message
Colours a model by one of its attributes, through a named colour ramp.
attribute : string
Name of the attribute driving the color.
range optional : project.object.ProjectAttributeRange
Range the ramp is stretched across. When absent, the attribute’s own range is used.
ramp optional : string
Name of the color ramp. When absent, the viewer’s default is used.
ProjectAttributeRange
Message
Numeric range an attribute-driven color ramp is stretched across.
min : float
Value mapped to the start of the ramp.
max : float
Value mapped to the end of the ramp.
ProjectBlockModel
Message
A point cloud representation.
data : RemoteHandle
Handle of the stored model, as a hyphenated UUID.
appearance optional : project.object.ProjectBlockModelAppearance
How the point cloud is drawn.
ProjectBlockModelAppearance
Message
How a point cloud is drawn.
Choose one of: mat_cap, color, attribute_ramp, gradient.
mat_cap optional : project.object.ProjectBlockModelMatCap
Shaded with a named matcap texture.
color optional : project.object.ProjectBlockModelColor
Drawn in one flat color.
attribute_ramp optional : project.object.ProjectBlockModelAttributeRamp
Colored by a named attribute through a color ramp.
gradient optional : project.object.ProjectBlockModelGradient
Colored by a ramp along a world-space axis.
ProjectBlockModelAttributeRamp
Message
Point cloud colored by a named attribute through a color ramp.
outline : bool
Whether block edges are outlined.
appearance optional : project.object.ProjectAttributeBasedAppearance
Which attribute drives the color and over what range.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectBlockModelColor
Message
Point cloud drawn in one flat color.
outline : bool
Whether block edges are outlined.
rgb : color.ColorRgb
The flat color. Transparency is opacity, not an alpha channel here.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectBlockModelGradient
Message
Point cloud colored by a ramp along a world-space axis.
outline : bool
Whether block edges are outlined.
axis : math.Vec3
Direction the ramp runs along.
ramp : string
Name of the color ramp.
extents : project.object.ProjectGradientExtentsKind
Which bounds the ramp is stretched across.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectBlockModelMatCap
Message
Point cloud shaded with a named matcap texture.
outline : bool
Whether block edges are outlined.
name : string
Name of the matcap texture.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectCapsule
Message
A 3D Capsule.
radius : double
The radius of the Semi-Sphere.
length : double
The length of the capsule, minus the caps.
ProjectCube
Message
A 3D Cube.
half_extents : double
The half-extents of the Cube.
ProjectGeometry
Message
Choose one of: sphere, cube, arrow, capsule.
sphere optional : project.object.ProjectSphere
A 3D Sphere.
cube optional : project.object.ProjectCube
A 3D Cube.
arrow optional : project.object.ProjectArrow
A 3D Arrow.
capsule optional : project.object.ProjectCapsule
A 3D Capsule.
ProjectGradientExtentsKind
Enum
Whether a gradient spans the object or the whole scene.
PROJECT_GRADIENT_EXTENTS_KIND_LOCAL = 0
Stretch the ramp across the node’s own extents.
PROJECT_GRADIENT_EXTENTS_KIND_GLOBAL = 1
Stretch the ramp across the whole scene’s extents.
ProjectLineDash
Message
gap_scale : float
Gap length in multiples of the line width.
line_scale : float
Dash length in multiples of the line width.
ProjectLineJoin
Message
Choose one of: none, miter, bevel, round.
none optional : google.protobuf.Empty
miter optional : google.protobuf.Empty
bevel optional : google.protobuf.Empty
round optional : project.object.ProjectLineRound
ProjectLineRound
Message
resolution : uint32
ProjectLineStyle
Message
Choose one of: solid, dotted, dashed.
solid optional : google.protobuf.Empty
dotted optional : google.protobuf.Empty
dashed optional : project.object.ProjectLineDash
ProjectMesh
Message
A point cloud representation.
data : RemoteHandle
Handle of the stored model, as a hyphenated UUID.
appearance optional : project.object.ProjectMeshAppearance
How the point cloud is drawn.
ProjectMeshAppearance
Message
How a point cloud is drawn.
Choose one of: mat_cap, color, attribute_ramp, gradient.
mat_cap optional : project.object.ProjectMeshMatCap
Shaded with a named matcap texture.
color optional : project.object.ProjectMeshColor
Drawn in one flat color.
attribute_ramp optional : project.object.ProjectMeshAttributeRamp
Colored by a named attribute through a color ramp.
gradient optional : project.object.ProjectMeshGradient
Colored by a ramp along a world-space axis.
ProjectMeshAttributeRamp
Message
Point cloud colored by a named attribute through a color ramp.
appearance optional : project.object.ProjectAttributeBasedAppearance
Which attribute drives the color and over what range.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectMeshColor
Message
Point cloud drawn in one flat color.
rgb : color.ColorRgb
The flat color. Transparency is opacity, not an alpha channel here.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectMeshGradient
Message
Point cloud colored by a ramp along a world-space axis.
axis : math.Vec3
Direction the ramp runs along.
ramp : string
Name of the color ramp.
extents : project.object.ProjectGradientExtentsKind
Which bounds the ramp is stretched across.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectMeshMatCap
Message
Point cloud shaded with a named matcap texture.
name : string
Name of the matcap texture.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectName
Message
A name for a ProjectNode.
name : string
The human-readable node name.
ProjectNoFilter
Message
Filter that draws every element.
ProjectNode
Message
The ID of a ProjectNode.
uuid : string
The identifier as a hyphenated UUID string.
ProjectPointCloud
Message
A point cloud representation.
data : RemoteHandle
Handle of the stored model, as a hyphenated UUID.
appearance optional : project.object.ProjectPointCloudAppearance
How the point cloud is drawn.
ProjectPointCloudAppearance
Message
How a point cloud is drawn.
Choose one of: mat_cap, color, attribute_ramp, gradient.
mat_cap optional : project.object.ProjectPointCloudMatCap
Shaded with a named matcap texture.
color optional : project.object.ProjectPointCloudColor
Drawn in one flat color.
attribute_ramp optional : project.object.ProjectPointCloudAttributeRamp
Colored by a named attribute through a color ramp.
gradient optional : project.object.ProjectPointCloudGradient
Colored by a ramp along a world-space axis.
ProjectPointCloudAttributeRamp
Message
Point cloud colored by a named attribute through a color ramp.
point_size : float
Diameter of a drawn point in world units.
appearance optional : project.object.ProjectAttributeBasedAppearance
Which attribute drives the color and over what range.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectPointCloudColor
Message
Point cloud drawn in one flat color.
point_size : float
Diameter of a drawn point in world units.
rgb : color.ColorRgb
The flat color. Transparency is opacity, not an alpha channel here.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectPointCloudGradient
Message
Point cloud colored by a ramp along a world-space axis.
point_size : float
Diameter of a drawn point in world units.
axis : math.Vec3
Direction the ramp runs along.
ramp : string
Name of the color ramp.
extents : project.object.ProjectGradientExtentsKind
Which bounds the ramp is stretched across.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectPointCloudMatCap
Message
Point cloud shaded with a named matcap texture.
point_size : float
Diameter of a drawn point in world units.
name : string
Name of the matcap texture.
filter optional : project.object.ProjectVolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
ProjectPolyline
Message
vertices optional : list[math.Vec3]
appearance optional : project.object.ProjectPolylineAppearance
ProjectPolylineAppearance
Message
color optional : color.ColorRgba
line_width optional : float
Stroke width in pixels when perspective is disabled. It must be positive; the default is 4.
line_style optional : project.object.ProjectLineStyle
line_join optional : project.object.ProjectLineJoin
line_perspective optional : bool
Whether stroke width decreases with distance. The default is false.
depth_bias optional : float
Depth offset between -1 and 1. Negative values move lines toward the camera.
fill_color optional : color.ColorRgba
Fill color for a closed planar polyline. Absent means no fill.
ProjectShape
Message
geometry : project.object.ProjectGeometry
The shape geometry
appearance : project.object.ProjectShapeAppearance
The appearance of the shape
ProjectShapeAppearance
Message
How a shape is drawn.
color optional : color.ColorRgba
The color of the shape.
wireframe : bool
Whether the engine draws the shape as a solid mesh or as a wireframe.
line_width optional : float
Wireframe width in pixels when perspective is disabled. It must be positive; the default is 2.
line_style optional : project.object.ProjectLineStyle
line_join optional : project.object.ProjectLineJoin
line_perspective optional : bool
Whether wireframe width decreases with distance. The default is false.
depth_bias optional : float
Depth offset between -1 and 1. Negative values move lines toward the camera.
ProjectSphere
Message
A 3D Sphere.
radius : double
The radius of the Sphere.
ProjectTransform
Message
Where an object sits, how it is turned, and its scale. All parts are double precision.
translation : math.Vec3
Position in the parent nodes object space, or world-space if a root node.
rotation : math.Quat
Rotation as an [x, y, z, w] quaternion. All four zero reads as the identity rotation.
scale : math.Vec3
World-space scale.
ProjectValueRangeFilter
Message
Filter keeping elements whose attribute falls inside [min, max].
attribute : string
Name of the attribute being tested.
min : float
Inclusive lower bound.
max : float
Inclusive upper bound.
ProjectVisibility
Message
Whether an object is drawn.
kind : project.object.ProjectVisibilityKind
The VisibilityKind as an i32 kind.
ProjectVisibilityKind
Enum
Whether an object is drawn, hidden, or follows its parent.
PROJECT_VISIBILITY_KIND_INHERITED = 0
Inherit visibility from the parent node.
PROJECT_VISIBILITY_KIND_VISIBLE = 1
Force the node visible.
PROJECT_VISIBILITY_KIND_HIDDEN = 2
Force the node hidden.
ProjectVolumetricFilter
Message
Which elements of a model are drawn.
Choose one of: none, value_range.
none optional : project.object.ProjectNoFilter
Every element is drawn.
value_range optional : project.object.ProjectValueRangeFilter
Only elements whose attribute falls inside a numeric range are drawn.
SetParent
Message
Set the parent of a given ProjectNodeSchema
node : project.object.ProjectNode
parent optional : project.object.ProjectNode
Spawn
Message
Spawn a new blank project object
ToScene
Message
Finds the current scene node associated with a project node.
node : project.object.ProjectNode
ToSceneResponse
Message
value optional : scene.Node