viewport.controller
3 functions / 1 types
Index
| Function | Description |
|---|---|
| activate_default | Acquire default navigation of the selected camera, preserving its current pose. |
| get | Inspect the selected camera’s controller. An uncontrolled camera returns no controller. |
| release | Release the selected camera without activating another controller. |
| Type | Description |
|---|---|
| ControllerInfo | The 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.ControllerInfoAcquire 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 | NoneInspect 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
) -> NoneRelease 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.