Skip to main content

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

FieldValue
DisplayChange Floor View
Categorybuilding
AccessScriptCheat
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
deltaintno1How many levels to move: +1 goes one floor up, -1 one floor down

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
customizing_floorintyesFloor level now being viewed/edited. Same value build.get_mode_state reports as customizing_floor.
previous_floorintyesFloor level before the call
requested_floorintyesAbsolute floor level that was requested (after applying delta, for the relative command)
clampedboolyesWhether the request was outside the site's floor range and got clamped
floor_view_minintyesLowest floor level the view can reach on this site
floor_view_maxintyesHighest floor level the view can reach on this site

Usage

await inzoi.cli.execute('building.change_floor_view', {
delta: 1, // optional
});