Skip to content

project.object

Create and edit versioned project objects and their components.

7 functions / 53 types

Modules

Index

FunctionDescription
DespawnDespawn a project object and all its descendants.
FromSceneFinds the project node associated with a scene node.
GetChildrenGet the children of a given ProjectNodeSchema
GetParentGet the parent of a given scene object if it exists
SetParentSet the parent of a given ProjectNodeSchema
SpawnSpawn a new blank project object
ToSceneFinds the current scene node associated with a project node.
TypeDescription
DespawnDespawn a project object and all its descendants.
FromSceneFinds the project node associated with a scene node.
FromSceneResponse
GetChildrenGet the children of a given ProjectNodeSchema
GetChildrenResponse
GetParentGet the parent of a given scene object if it exists
GetParentResponse
ProjectArrowA 3D Arrow.
ProjectAttributeBasedAppearanceColours a model by one of its attributes, through a named colour ramp.
ProjectAttributeRangeNumeric range an attribute-driven color ramp is stretched across.
ProjectBlockModelA point cloud representation.
ProjectBlockModelAppearanceHow a point cloud is drawn.
ProjectBlockModelAttributeRampPoint cloud colored by a named attribute through a color ramp.
ProjectBlockModelColorPoint cloud drawn in one flat color.
ProjectBlockModelGradientPoint cloud colored by a ramp along a world-space axis.
ProjectBlockModelMatCapPoint cloud shaded with a named matcap texture.
ProjectCapsuleA 3D Capsule.
ProjectCubeA 3D Cube.
ProjectGeometry
ProjectGradientExtentsKindWhether a gradient spans the object or the whole scene.
ProjectLineDash
ProjectLineJoin
ProjectLineRound
ProjectLineStyle
ProjectMeshA point cloud representation.
ProjectMeshAppearanceHow a point cloud is drawn.
ProjectMeshAttributeRampPoint cloud colored by a named attribute through a color ramp.
ProjectMeshColorPoint cloud drawn in one flat color.
ProjectMeshGradientPoint cloud colored by a ramp along a world-space axis.
ProjectMeshMatCapPoint cloud shaded with a named matcap texture.
ProjectNameA name for a ProjectNode.
ProjectNoFilterFilter that draws every element.
ProjectNodeThe ID of a ProjectNode.
ProjectPointCloudA point cloud representation.
ProjectPointCloudAppearanceHow a point cloud is drawn.
ProjectPointCloudAttributeRampPoint cloud colored by a named attribute through a color ramp.
ProjectPointCloudColorPoint cloud drawn in one flat color.
ProjectPointCloudGradientPoint cloud colored by a ramp along a world-space axis.
ProjectPointCloudMatCapPoint cloud shaded with a named matcap texture.
ProjectPolyline
ProjectPolylineAppearance
ProjectShape
ProjectShapeAppearanceHow a shape is drawn.
ProjectSphereA 3D Sphere.
ProjectTransformWhere an object sits, how it is turned, and its scale. All parts are double precision.
ProjectValueRangeFilterFilter keeping elements whose attribute falls inside [min, max].
ProjectVisibilityWhether an object is drawn.
ProjectVisibilityKindWhether an object is drawn, hidden, or follows its parent.
ProjectVolumetricFilterWhich elements of a model are drawn.
SetParentSet the parent of a given ProjectNodeSchema
SpawnSpawn a new blank project object
ToSceneFinds the current scene node associated with a project node.
ToSceneResponse

Despawn

RPC

Despawn(request: project.object.Despawn) -> google.protobuf.Empty

Despawn a project object and all its descendants.

Service method: spatialengine.v1.project.object.ProjectObject.Despawn.

Returns google.protobuf.Empty.

FromScene

RPC

FromScene(request: project.object.FromScene) -> project.object.FromSceneResponse

Finds 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.GetChildrenResponse

Get the children of a given ProjectNodeSchema

Service method: spatialengine.v1.project.object.ProjectObject.GetChildren.

Returns project.object.GetChildrenResponse.

GetParent

RPC

GetParent(request: project.object.GetParent) -> project.object.GetParentResponse

Get the parent of a given scene object if it exists

Service method: spatialengine.v1.project.object.ProjectObject.GetParent.

Returns project.object.GetParentResponse.

SetParent

RPC

SetParent(request: project.object.SetParent) -> google.protobuf.Empty

Set the parent of a given ProjectNodeSchema

Service method: spatialengine.v1.project.object.ProjectObject.SetParent.

Returns google.protobuf.Empty.

Spawn

RPC

Spawn(request: project.object.Spawn) -> project.object.ProjectNode

Spawn 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.ToSceneResponse

Finds the current scene node associated with a project node.

Service method: spatialengine.v1.project.object.ProjectObject.ToScene.

Returns project.object.ToSceneResponse.

Despawn

Message

Despawn a project object and all its descendants.

FromScene

Message

Finds the project node associated with a scene node.

node : scene.Node

FromSceneResponse

Message

GetChildren

Message

Get the children of a given ProjectNodeSchema

GetChildrenResponse

Message

value optional : list[project.object.ProjectNode]

GetParent

Message

Get the parent of a given scene object if it exists

GetParentResponse

Message

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

ProjectLineRound

Message

resolution : uint32

ProjectLineStyle

Message

Choose one of: solid, dotted, dashed.

solid optional : google.protobuf.Empty

dotted optional : google.protobuf.Empty

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]

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

Spawn

Message

Spawn a new blank project object

ToScene

Message

Finds the current scene node associated with a project node.

ToSceneResponse

Message

value optional : scene.Node