build.reset_camera
Overview
- [Build Mode Only] Puts the build mode camera back to the framing it gets when build mode is entered: centred on the site, looking down at -60 degrees, at the camera's default zoom. Use it to recover after the player has panned the camera somewhere else, and pass 'zoom' when the whole lot has to fit in frame. This is the ONLY way to move the build camera from the CLI: camera.observe_location and profiler.camera_jump switch to the free camera, which makes the game LEAVE build mode and then refuses build.enter_mode until the camera mode is restored (camera.follow_entity). It also resets the floor view to the ground floor, the same as entering build mode does. This is a VIEW change only: nothing is added to the build undo history. Requires phase == 'ready' (see build.get_mode_state).
Metadata
| Field | Value |
|---|---|
| Display | Reset Build Camera |
| Category | build |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| yaw | float | no | — | WORLD yaw in degrees to view the site from. Defaults to the site's own yaw, which lines the view up with the lot's edges - sites are rotated against the world, so world 0 looks at a rectangular lot diagonally. |
| zoom | float | no | — | How far back to pull the camera, in cm. Omit to keep the build camera's own default zoom, the one entering build mode gives. Pulling back past that default uses the same path as the mouse wheel, so the engine still clamps it to the range a player can reach - a very large value simply means 'as far out as the game allows'. Framing a large lot this way makes individual objects tiny; to watch objects being placed, keep the default zoom and move the camera with build.focus_camera instead. |
Returns
- Freeform result (shape is not fixed).
{ site_center_world: {x,y,z}, site_size: {x,y}, site_yaw: float, applied_yaw: float, requested_zoom: float }
Usage
await inzoi.cli.execute('build.reset_camera', {
yaw: 0.0, // optional
zoom: 0.0, // optional
});