Skip to content

clipping

2 functions / 1 types

Index

FunctionDescription
clip_all_modelsAction: enable or disable a single clipping box that covers the combined extents of all volumetric models.
get_clip_box_extentsRead the current global clipping box pose and size without changing scene or project data.
TypeDescription
ClipBoxExtentsWorld-space pose and size of the global clipping box, returned by GetClipBoxExtents.

clip_all_models

def clip_all_models(*, enabled: bool, _transaction_id: str | None = None) -> None

Action: enable or disable a single clipping box that covers the combined extents of all volumetric models.

Registered as clipping.clip_all_models. This is a runtime effect (not versioned): it shows or hides one clipping box, it does not change project data or participate in undo. Enabling records intent; the box is created during the next scene update only when volumetric models have bounds. An empty scene can have clipping enabled without a box. Use the extents query’s present value before reading its optional bounds.

Returns None.

enabled : bool

true shows a single clipping box over all models; false removes it.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

get_clip_box_extents

def get_clip_box_extents(*, _transaction_id: str | None = None) -> types.clipping.ClipBoxExtents

Read the current global clipping box pose and size without changing scene or project data.

A successful enable call does not guarantee that a box exists. Check present before accessing the optional bounds. It is false before box creation or when no volumetric models have bounds.

Returns ClipBoxExtents.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

ClipBoxExtents

ClipBoxExtents(
    *,
    present: bool,
    center: types.math.Vec3 | None = None,
    half_extents: types.math.Vec3 | None = None,
    rotation: types.math.Quat | None = None
)

World-space pose and size of the global clipping box, returned by GetClipBoxExtents.

present : bool

Whether a global clipping box currently exists. This can be false even after enabling clipping, before the scene update or when no volumetric models have bounds. When false, the remaining fields are all absent.

center optional : Vec3 | None

World-space center of the box. Defaults to None.

half_extents optional : Vec3 | None

Half-extents along the box’s own (oriented) axes, in world units. Defaults to None.

rotation optional : Quat | None

Box orientation mapping the box’s local axes to world axes. Defaults to None.