preview_vehicle
Render a stored Stormworks vehicle draft to an image with installed components, adjustable camera views, and a components layer for inspecting seats, tanks, and powertrain.
Instructions
Render a draft (imported, land or edited hull) with installed component meshes and return the image plus notes. yaw/pitch/zoom/focus give a close-up; layer=components hides bodywork to inspect seats, tanks and powertrain. Hull specs use preview_hull and vehicles in the game folder use preview_game_vehicle. Paint and wheel poses are approximate; the image is not an in-game screenshot. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaw | No | Camera heading in degrees (0 = side, 90 = front); default is a 3/4 view. | |
| zoom | No | 1 = whole vehicle, 2-6 = close-up. | |
| focus | No | [fx, fy, fz] fractions of the bounding box to centre on (x across, y up, z stern to bow), e.g. [0.5, 0.3, 0.9] = low on the bow. | |
| layer | No | "all", "components" (hides bodywork to show seats, tanks, powertrain) or "structure". | all |
| pitch | No | Camera degrees above (+) or below (-) the horizon; -30 shows the bottom. | |
| design | Yes | Stored draft name (from import_vehicle, create_land_vehicle, store_design or save_hull; see list_designs). | |
| renderer | No | "auto" (default) lights the scene like the game, on the GPU when available; "gpu"/"cpu" force one; "flat" is fastest and unlit, with block outlines for counting blocks. | |
| door_state | No | Show manual doors closed or open. | closed |