center_camera_on_selection
Center the camera on the current selection set to make small or edge selections legible. Use after selecting entities; optionally move the vantage point for precise centering.
Instructions
Point the camera at the current "selection set".
Useful for making a small selection legible, especially an edge: an edge is only a pixel or two wide, so centring it helps far more than any change of colour. Set the selection first with select_entities.
Centring moves the camera without re-framing the scene, so parts of the model
may fall outside the image. Follow with snapshot passing zoom=False, since
zoom=True re-frames the whole scene and undoes the centring.
Args: session_id: An open modeling session, from start_modeling_session. Required: camera position is scene state and would be discarded without one. move_vantage: Move the camera's vantage point as well as its target. True (the default) centres the selection most precisely; False re-aims the camera from where it already is.
Returns: DefaultCameraCenterToSelection: Confirmation that the camera was centred.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| move_vantage | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||