building.change_floor_view
Overview
- [Build Mode Only] Moves the build mode floor view up or down by 'delta' levels - the CLI equivalent of pressing PgUp/PgDn. Prefer building.set_floor_view when you know which floor you want; this one exists for stepping. Like set_floor_view it is a VIEW state, not an undoable edit, and the result is clamped to the site's existing floor range. Requires phase == 'ready' (see build.get_mode_state).
Metadata
| Field | Value |
|---|---|
| Display | Change Floor View |
| Category | building |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| delta | int | no | 1 | How many levels to move: +1 goes one floor up, -1 one floor down |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
customizing_floor | int | yes | Floor level now being viewed/edited. Same value build.get_mode_state reports as customizing_floor. |
previous_floor | int | yes | Floor level before the call |
requested_floor | int | yes | Absolute floor level that was requested (after applying delta, for the relative command) |
clamped | bool | yes | Whether the request was outside the site's floor range and got clamped |
floor_view_min | int | yes | Lowest floor level the view can reach on this site |
floor_view_max | int | yes | Highest floor level the view can reach on this site |
Usage
await inzoi.cli.execute('building.change_floor_view', {
delta: 1, // optional
});