Skip to content

viewport.controller

3 functions / 1 types

Index

FunctionDescription
activate_defaultAcquire default navigation of the selected camera, preserving its current pose.
getInspect the selected camera’s controller. An uncontrolled camera returns no controller.
releaseRelease the selected camera without activating another controller.
TypeDescription
ControllerInfoThe active controller and an acquisition identity suitable for a conditional release.

activate_default

def activate_default(
    *,
    viewport: str | None = None,
    _transaction_id: str | None = None
) -> types.viewport.controller.ControllerInfo

Acquire default navigation of the selected camera, preserving its current pose.

Returns ControllerInfo.

viewport optional : str | None

Select exactly one camera by viewport label. Absent, exactly one camera must exist. Defaults to None.

_transaction_id optional : str | None

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

get

def get(
    *,
    viewport: str | None = None,
    _transaction_id: str | None = None
) -> types.viewport.controller.ControllerInfo | None

Inspect the selected camera’s controller. An uncontrolled camera returns no controller.

Returns ControllerInfo | None.

viewport optional : str | None

Select exactly one camera by viewport label. Absent, exactly one camera must exist. Defaults to None.

_transaction_id optional : str | None

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

release

def release(
    *,
    viewport: str | None = None,
    ownership: str | None = None,
    _transaction_id: str | None = None
) -> None

Release the selected camera without activating another controller.

Returns None.

viewport optional : str | None

Select exactly one camera by viewport label. Absent, exactly one camera must exist. Defaults to None.

ownership optional : str | None

When supplied, release only this acquisition. A stale acquisition fails. Defaults to None.

_transaction_id optional : str | None

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

ControllerInfo

ControllerInfo(*, kind: str, ownership: str)

The active controller and an acquisition identity suitable for a conditional release.

kind : str

The registered controller name, such as editor or geo.

ownership : str

Identifies this acquisition. It changes when another controller takes control.