e3d_set_camera
Preview or apply five native E3D camera fields—centre, direction, radius, perspective and twist—through a revision-tied request to restore a previously observed view pose safely.
Instructions
Preview or set five explicit native E3D camera fields: centre, looking direction, radius, perspective and extra twist. Use values from e3d_view_state to return to a previously observed pose, with native floating-point readback tolerance. All five fields are required; coordinates use the SDK native frame and direction is normalized by the adapter. This does not restore other optics, clipping, viewport size or shading settings. Preview defaults to true; execute the same request with the preview revision as expected_revision and command permission. The revision binds the requested values, current camera and viewport, bridge instance, project/MDB, view, Drawlist, full display maps, CE and ordered graphical selection. State changes require a fresh preview. A camera already matching within readback tolerance skips camera setters and MapView. A real write maps once, then verifies camera readback, shading, display, selection and CE; failures preserve observed residuals without automatic retry or rollback. Never replay an uncertain write. Does not add graphics, fit geometry, select CE or save Drawlist state. capture_after returns a native picture and requested/readback camera agreement at bitmap time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| centre | Yes | Three finite SDK native coordinates, within the readable single-precision range. | |
| radius | Yes | Finite positive native camera radius. | |
| dry_run | No | ||
| direction | Yes | Finite nonzero native looking vector; the adapter normalizes its length. | |
| perspective | Yes | ||
| capture_after | No | After a confirmed successful operation, return a native E3D image receipt. | |
| capture_width | No | ||
| capture_height | No | ||
| expected_revision | No | Fresh revision from the same five-field preview; required for execution. | |
| extra_twist_degrees | Yes | Finite native additional camera twist in degrees. |