Froxel
v0.4.0Voxel editor: sculpt, script, paint, rig, preview, and export .vox models to glTF
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
batch
Apply a list of editing tools to the active object and the palette in order, as one undo step, instead of one call per board or cut. Stops at the first error, says which item failed (items count from 0), and leaves the document as it was with no undo step added. The whole list is checked first: an unknown option or a tool that cannot run here refuses the batch before anything changes. At most 4096 items; each takes what its tool takes. Replies with items, changed (the sum over the items), voxels, and results, each item's tool and counts in short form. Tools that write files are refused, as are…
| Parameter | Type | Description |
|---|---|---|
operations * | array | The items in order. Each is {tool, arguments}, arguments as the tool itself takes them. |
new_document
Replace the session with an empty one-object document and the default palette.
open_file
Open a .vox file, replacing the session document. By default replies with path, objectCount, voxels, world bounds, activeObject, canUndo, canRedo, bones (count), paletteSlots (used slots), motionSlots, the first 20 objectNames, moreObjects (how many names were left out), and warnings (what the file left out, such as a rig, clip, script, or marker chunk from a newer Froxel; the voxels still open, and a save drops that chunk). A Froxel file opens in the frame it was saved in, older ones with a script or markers included; a foreign file opens centred and floored. When world positions differ from…
| Parameter | Type | Description |
|---|---|---|
path * | string | Path of a .vox file |
detail | string | summary (default) is the short reply; full is the inspect_document result. |
fullPalette | boolean | With detail full, list all 256 palette slots, not only the used ones. Defaults to false. |
save_file
Write every non-empty object as a .vox scene. World voxel and marker positions survive reopening, including negative coordinates, so a reopened document exports the same glTF frame and marker values; local cells may rebase to the model box. Replies with voxels (solid cells in the file) and objects (models written).
| Parameter | Type | Description |
|---|---|---|
path | string | Where to write. Omit to overwrite the open file. Its folder is created. |
inspect_document
Path, voxel count, world bounds, objects (name, world position, local bounds), palette colours keyed by index for the slots some voxel uses (fullPalette for all 256), and motion keyed by palette index for slots that are not still at amount 1.
| Parameter | Type | Description |
|---|---|---|
fullPalette | boolean | List all 256 palette slots, not only the used ones. Defaults to false. |
get_voxel
Read one local cell of the active object. 0 is empty. Coordinates are local to that object.
| Parameter | Type | Description |
|---|---|---|
x * | integer | Local x of the active object |
y * | integer | Local y |
z * | integer | Local z (up) |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
set_voxel
Write one local cell of the active object. Coordinates are local. One undo step.
| Parameter | Type | Description |
|---|---|---|
palette * | integer | Palette index. 0 erases. 1..255 paint. |
x * | integer | Local x of the active object |
y * | integer | Local y |
z * | integer | Local z (up) |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
set_voxels
Write up to 200000 local cells of the active object as one undo step. Coordinates are local to that object.
| Parameter | Type | Description |
|---|---|---|
cells * | array | Each item is {x,y,z,palette} or [x,y,z,palette], in the active object's local cells. Last duplicate wins. |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
fill_box
Fill an inclusive box of local cells in the active object. At most 2000000 cells. One undo step.
| Parameter | Type | Description |
|---|---|---|
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells; intersect keeps only the object's solid cells inside the sh… |
palette | integer | Palette index. 0 erases. Required except with mode intersect. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
get_voxels
List non-empty local cells of the active object inside an inclusive box. At most 100000.
| Parameter | Type | Description |
|---|---|---|
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
set_palette
Replace one palette slot, or many via entries, as one undo step. The colour is color, "#rrggbb" or "#rrggbbaa" as the other tools take colours (or [r, g, b, a?]), or r, g, b (and a) as numbers; not both. motion is none, sway, or bob.
| Parameter | Type | Description |
|---|---|---|
a | integer | Alpha 0..255. Defaults to 255, or the alpha of a #rrggbbaa color. |
b | integer | Blue 0..255 |
color | string | array | "#rrggbb" or "#rrggbbaa" (the # may be left out), or [r, g, b] or [r, g, b, a] in 0..255. Instead of r, g, b. |
entries | array | Batch of {index, color | r,g,b, a?, motion?, motionAmount?}, such as {"index": 3, "color": "#5c6838"}. Omit when passing index. |
g | integer | Green 0..255 |
index | integer | Palette slot 0..255 |
motion | string | none, sway, or bob. Omit to leave the slot's motion. |
motionAmount | number | Motion strength, 0..4. Omit to leave it. Default 1 when a kind is first set. |
motion_amount | number | Older name of motionAmount; still accepted. |
r | integer | Red 0..255 |
set_active_object
Edit a different object from inspect_document. Later voxel tools use that object's local cells.
| Parameter | Type | Description |
|---|---|---|
index * | integer | Object index |
add_object
Add an empty object at a world voxel position and return its index. It becomes active unless makeActive is false. size is a local capacity hint; the object still grows up to 256 per axis. One undo step.
| Parameter | Type | Description |
|---|---|---|
makeActive | boolean | Select the new object. Defaults to true. |
make_active | boolean | Older name of makeActive; still accepted. |
name | string | Object name. Omit for Object N. |
position | array | World position [x, y, z] in voxel units. Defaults to [0, 0, 0]. |
size | array | Optional SIZE box [x, y, z], each axis 1..=256. Does not cap later growth below the per-object limit. |
set_object
Rename, move, or hide an object. position is a world voxel coordinate; local cells stay put, so the voxels move with the object. One undo step.
| Parameter | Type | Description |
|---|---|---|
index * | integer | Object index |
hidden | boolean | Hide the object. Hidden objects stay in the file and outliner. |
name | string | New name |
position | array | World position [x, y, z] in voxel units |
remove_object
Remove an object and its voxels. A bone bound to it stays; the binding goes. Later object indices decrease by one, and the reply says so. Refuses the last object. One undo step.
| Parameter | Type | Description |
|---|---|---|
index * | integer | Object index |
fill_ellipsoid
Fill the ellipsoid inscribed in an inclusive local box. Same limits and one undo step as fill_box. The box is checked before any cell is written.
| Parameter | Type | Description |
|---|---|---|
x0 * | integer | Inclusive minimum x |
x1 * | integer | Inclusive maximum x |
y0 * | integer | Inclusive minimum y |
y1 * | integer | Inclusive maximum y |
z0 * | integer | Inclusive minimum z |
z1 * | integer | Inclusive maximum z |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells; intersect keeps only the object's solid cells inside the sh… |
palette | integer | Palette index. 0 erases. Required except with mode intersect. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
fill_rounded_box
Fill an inclusive local box with rounded edges. radius is the bevel, clamped to half the shortest side. radius 0 fills the whole box. Same limits and one undo step as fill_box.
| Parameter | Type | Description |
|---|---|---|
radius * | number | Edge bevel in voxels. 0 fills the box. |
x0 * | integer | Inclusive minimum x |
x1 * | integer | Inclusive maximum x |
y0 * | integer | Inclusive minimum y |
y1 * | integer | Inclusive maximum y |
z0 * | integer | Inclusive minimum z |
z1 * | integer | Inclusive maximum z |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells; intersect keeps only the object's solid cells inside the sh… |
palette | integer | Palette index. 0 erases. Required except with mode intersect. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
fill_tube
Fill a round tube through 2..=1024 local points, for limbs, roots, branches, and twigs. Each point has its own radius, so the tube tapers; joints and ends are round. A whole-number point is the centre of that cell, and a cell is filled when its centre is within the radius of the axis. curve smooth passes a Catmull-Rom curve through the points; polyline (default) joins them straight. aspect, roll, and profile blade make it flat or a wedge, for shards, splinters, and plank ends. Colour with palette, or with palettes and a pattern: rings bands along the length every period cells, stripes divides…
| Parameter | Type | Description |
|---|---|---|
points * | array | Each item is [x, y, z], [x, y, z, radius], or {x, y, z, radius?} in the active object's local cells. Numbers may be fractional. |
aspect | number | Flatten: thickness over width, 0.05..=1. 1 (default) is round. The thickness is at least one cell and runs up for a level tube, so a flat tube lies flat. |
curve | string | polyline (default) or smooth. |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells; intersect keeps only the object's solid cells inside the sh… |
palette | integer | Palette index. 0 erases. Pass this or palettes. |
palettes | array | 1..=64 palette indices cycled by pattern. Repeat an index to weight it. |
pattern | string | How palettes are laid out. Defaults to rings. |
period | number | rings: band length along the tube in cells. Defaults to 2. |
profile | string | blade tapers the thickness across the width to one cell at one edge: a wedge, for splinters and broken plank ends. Defaults to round. |
radius | number | Radius for points that give none, 0.5..=128. 0.5 is one cell thick. |
roll | number | Degrees to turn a flat or blade cross-section about the axis. 90 stands a level shard on its edge. |
sectors | integer | stripes: sectors around the tube, 1..=256. Defaults to the number of palettes. |
seed | integer | random: seed. Defaults to 0. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
recolor
Replace palette slot from with slot to (or every pair of a map) in the active object's solid cells, in an inclusive box or the whole object, with no shape change: a blockout slot becomes the shell slot, two shades merge, a belly is re-tinted. Cells of other slots and empty cells stay. to 0 erases those cells. A slot is mapped once; the map is applied to the cells as they were, so 3 to 4 and 4 to 3 swap. One undo step. Replies with matched (cells of a mapped slot), changed, and voxels.
| Parameter | Type | Description |
|---|---|---|
from | integer | Palette slot to replace, 1..255. Pass from and to, or map. |
map | object | array | Several at once: {"3": 5, "4": 6} or [[3, 5], [4, 6]]. |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
to | integer | Palette slot it becomes, 0..255. 0 erases. |
x0 | integer | Optional inclusive box corner; all six or none (the whole object) |
x1 | integer | Inclusive box corner |
y0 | integer | Inclusive box corner |
y1 | integer | Inclusive box corner |
z0 | integer | Inclusive box corner |
z1 | integer | Inclusive box corner |
deterrace
Remove the contour terraces a smooth mesh leaves when voxelized (import_mesh of an image-to-3D model): one-cell steps running in long even bands on gentle slopes, which read as stripes. mode blocks (default) re-quantizes the active object into cubes of size cells (2 to 4, default 2) on a grid through origin: a cube is solid when at least fill (default 0.5) of its cells are, and its cells take its most common slot, so every step is size cells tall and the form gets the chunky concept-cube look; a cube whose decision would move the surface more than tolerance cells (default size) stays as it is,…
| Parameter | Type | Description |
|---|---|---|
fill | number | blocks: the share of a cube's cells that makes it solid, above 0 and at most 1. Defaults to 0.5. |
jitter | number | stagger: share of teeth flipped from the alternating pattern, 0..=1. Defaults to 0.3. |
mode | string | blocks (default) re-quantizes into cubes; stagger breaks one-cell step edges into teeth. |
origin | array | blocks: a corner of the cube grid, in local cells. Defaults to [0, 0, 0]. |
run | integer | stagger: tooth length along a step, 1..=16. Defaults to 2. |
seed | integer | stagger: which teeth flip. Defaults to 0. |
size | integer | blocks: the cube side in cells, 2..=4. Defaults to 2. |
tolerance | integer | blocks: how far, in cells, a cube may move the surface, 0..=16. Defaults to size. |
x0 | integer | Inclusive box corner |
x1 | integer | Inclusive box corner |
y0 | integer | Inclusive box corner |
y1 | integer | Inclusive box corner |
z0 | integer | Inclusive box corner |
z1 | integer | Inclusive box corner |
split_parts
Cut ONE blockout (an import_mesh or carve_from_views result) into its rig parts in one call, instead of many box-based split_object calls: parts is a list of {name, seed} with seed a point [x, y, z] (a cell of the source object, or a world cell with space world), points (several seeds of one part, e.g. along a leg), bone (that bone's pivot), or marker (a point marker); each snaps to the nearest solid cell within reach (default 8). Every solid cell goes to the part whose seed is nearest along a path through the solid (metric geodesic, the default: a multi-source Dijkstra over cells joined by fa…
| Parameter | Type | Description |
|---|---|---|
parts * | array | 1..64 parts: {name, point: [x, y, z] | points: [[x, y, z], ...] | bone: name | marker: name, planes?: [{normal: [x, y, z], at: [x, y, z]}]}. |
bind | boolean | Bind each part to the bone of its name when there is one. Defaults to true. |
connectivity | integer | Geodesic neighbours: 26 (default) faces, edges, and corners; 6 faces only. |
metric | string | geodesic (default): distance through the solid; euclidean: straight-line distance. |
object | integer | string | The source object by index or name. Defaults to the active one. |
reach | number | Cells a seed may snap to the nearest solid cell, 0..64. Defaults to 8. |
removeSource | boolean | Remove the emptied source object. Defaults to true; a part named like the source keeps it. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
reduce_palette
Clean up the colours of a voxelized mesh (import_mesh of an image-to-3D model gives a score of slots a shade apart and a per-cell ripple): first reduce, then despeckle, on the active object, with no cell added or removed. colors N clusters the object's colours into N (median cut refined by k-means in the Oklab perceptual space, over the surface cells) with an accent guard that keeps up to maxAccents (default 4) small distinct colours (eyes, a mouth, a nostril) their own slot when they hold at least minShare (default 0.002) of the surface and lie further than contrast (an Oklab distance, defaul…
| Parameter | Type | Description |
|---|---|---|
accents | boolean | colors: keep small distinct colours their own slot. Defaults to true. |
colors | integer | Cluster the colours into this many, 1..64. |
contrast | number | Accent guard: Oklab distance from every cluster an accent needs. Defaults to 0.12. |
despeckle | integer | boolean | Majority filter passes over the surface, 0..16; true is 1. Defaults to 0. |
maxAccents | integer | Accent guard: most accents kept beyond colors, 0..16. Defaults to 4. |
minSame | integer | Despeckle: a cell keeps its slot when at least this many surface neighbours share it, 0..26. Defaults to 2. |
minShare | number | Accent guard: share of the surface an accent needs, 0..1. Defaults to 0.002. |
palette | array | Instead of colors: snap every colour to the nearest of these slots or #rrggbb colours. |
protect | array | Slots both passes leave alone. |
x0 | integer | Inclusive box corner |
x1 | integer | Inclusive box corner |
y0 | integer | Inclusive box corner |
y1 | integer | Inclusive box corner |
z0 | integer | Inclusive box corner |
z1 | integer | Inclusive box corner |
components
Clean up the connected parts of the active object, for a mesh from an image-to-3D tool (import_mesh) that came with extras: a rider on a shell, moss tufts, foam splashes. Cells join by faces (connectivity 6), faces and edges (18), or faces, edges, and corners (26, the default). op list (default) reports the parts, largest first; keep_largest erases every part but the keep largest (default 1); remove_small erases parts with fewer than minCells cells (floaters); delete, move (by offset), and split (into a new object named name, or an existing one, into, keeping world positions; index picks the s…
| Parameter | Type | Description |
|---|---|---|
anchor | array | A local cell [x, y, z] of the part that stays; the seed's part is cut from it at the thinnest neck between them. |
connectivity | integer | Neighbours that join cells: 6 faces, 18 faces and edges, 26 (default) also corners. |
copy | boolean | split: leave the part in the source too. |
index | integer | string | split: the source object (index or name). Defaults to the active one. |
into | integer | string | split: an existing object (index or name) to put the part in, instead of a new one. |
keep | integer | keep_largest: how many of the largest parts stay. Defaults to 1. |
makeActive | boolean | split: make the target the active object. |
minCells | integer | remove_small: parts with fewer cells are erased. |
name | string | split: name of the new object. Defaults to <source>_part. |
offset | array | move: whole cells [dx, dy, dz]. |
op | string | What to do. list (default) only reports. |
radius | number | Geodesic radius in cells around seed and anchor that the neck cut stays out of. Defaults to 0.3 of their geodesic distance. |
reach | number | How far seed and anchor may be from the solid cell they snap to, 0..=64. Defaults to 8. |
seed | array | delete, move, split: a local cell [x, y, z] of the part to act on. |
surface_stroke
Paint a stroke through points that lands on the active object's surface, for seams between shell plates, markings on a curved body, and grooves, instead of a fill_tube in paint mode at a radius that may miss the surface. The path (straight, or a smooth curve) is sampled every half cell; each sample snaps to the nearest surface cell (a solid cell with an empty face neighbour) within reach, so points may float above or sink below the surface. The solid cells within width / 2 of each snapped cell and at most depth cells into the solid (1 is the surface alone) take palette; palette 0 erases them,…
| Parameter | Type | Description |
|---|---|---|
palette * | integer | Slot the stroke paints, 1..255, or 0 for a groove. |
points * | array | 2..=1024 points [x, y, z] or {x, y, z} in the active object's local cells (a whole number is the centre of that cell); numbers may be fractional. |
curve | string | polyline (default) or smooth (Catmull-Rom through the points). |
depth | integer | Cells into the solid, 1..=16. Defaults to 1, the surface alone. |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
only | integer | array | Only cells of these slots change, such as the shell slots, so a seam stops at the skin. |
reach | number | How far a sample may be from the surface cell it snaps to, 0..=64. Defaults to 8. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
width | number | Width across the surface in cells, 0.5..=32. Defaults to 1, a one-cell line. |
carve
Remove the solid cells inside a box, ellipsoid, rounded_box, or tube of the active object, for hollows, tunnels, and pits (to cut a polygon or rounded rectangle along a path, closed or open, call sweep with palette 0; to remove everything outside a surface, call trim_outline). box, ellipsoid, and rounded_box take x0..z1 (and radius for rounded_box) exactly as their fill tools; tube takes points, radius, and curve as fill_tube. Same 2000000-cell limits, checked before any cell changes; a tube also has at most 512000000 cells in the boxes around its segments, and a closed path counts like an ope…
| Parameter | Type | Description |
|---|---|---|
shape * | string | Shape to remove. |
aspect | number | tube: flatten, as fill_tube. |
curve | string | tube: polyline (default) or smooth. |
points | array | tube: points as in fill_tube. |
profile | string | tube: as fill_tube. |
radius | number | rounded_box: edge bevel. tube: radius for points that give none. |
roll | number | tube: roll in degrees, as fill_tube. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
x0 | integer | box, ellipsoid, rounded_box: inclusive corner |
x1 | integer | Inclusive corner |
y0 | integer | Inclusive corner |
y1 | integer | Inclusive corner |
z0 | integer | Inclusive corner |
z1 | integer | Inclusive corner |
smooth
Soften a blocky region of the active object with a majority filter over each cell's 26 neighbours, inside an inclusive local box of at most 2000000 cells. An empty cell with at least fillAt solid neighbours is filled with the colour most of them hold; a solid cell with at most removeAt solid neighbours is removed. The defaults fill single-cell pits and inside corners and remove single-cell spikes and outside corners, and keep flat faces and edges. It also removes features one cell thick (twigs, thin walls), so leave those out of the box. Cells outside the box are read, never changed. One undo…
| Parameter | Type | Description |
|---|---|---|
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
fillAt | integer | Fill an empty cell with at least this many solid neighbours, 1..=27. Defaults to 17; 14 also rounds inside edges; 27 never fills. |
iterations | integer | Passes, 1..=8. Defaults to 1. Stops early when a pass changes nothing. |
removeAt | integer | Remove a solid cell with at most this many solid neighbours, -1..=25. Defaults to 9; 12 also rounds outside edges; -1 never removes. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
break_end
Break the active object across a plane, for a snapped trunk, branch, plank, or post. Every cell beyond a jagged surface around the plane goes: blocks of 2 by 3 cells across the face dip up to depth into the wood, a quarter of them deep pits. The cells left facing the cut take bark on the rim of the section and sapwood inside, and tapered flat splinters grow from the new face out along the normal, longer and more common near the rim with rimBias. Splinters fill only empty cells. Deterministic for a seed. At most 512 splinters and 2000000 cells. One undo step. Replies with removed, recoloured, a…
| Parameter | Type | Description |
|---|---|---|
normal * | array | Out of the wood, toward the part that breaks off. Need not be unit length. |
point * | array | A point on the break plane, in local cells. |
bark | integer | Palette index for the rim of the new face and the base of rim splinters. Omit to keep the cells' colour. |
density | number | Splinters per cell of the new face, 0..=1. Defaults to 0.15. |
depth | number | How far pits and the uneven face reach into the wood, 0..=32 cells. Defaults to 3. |
length | array | Splinter length [min, max] in cells, 1..=64. Defaults to [4, 12]. |
rimBias | number | 0..=1. How much more often and longer splinters are near the rim. Defaults to 0.5. |
sapwood | array | Palette indices mixed over the new face and the splinters. Omit to keep the cells' colour. |
seed | integer | Seed. Defaults to 0. |
splinters | integer | Number of splinters, 0..=512. Pass this or density. |
taper | number | 0 keeps the base radius to the tip; 1 (default) thins it to one cell. |
thickness | number | Splinter radius at its base, 0.5..=4. Defaults to 1. |
tips | integer | Palette index for the outer part of each splinter, often a lighter wood. Omit to use the sapwood. |
scatter
Scatter small pieces of debris (shard, chip, pebble, chunk) into the active object, for a heap at a break, chips at a stump, gravel. Each piece starts inside the inclusive box's x and y at its top and falls straight down until the next step would touch a solid cell (the model or a piece before it) or pass floor, so pieces rest on what is below and pile up. Only cells, no physics; only empty cells are written. A piece that meets a solid cell at the top of the box, or would rest in an exclude box, is skipped. Deterministic for a seed. At most 2000 pieces, a box of 2000000 cells, and 200000 new c…
| Parameter | Type | Description |
|---|---|---|
palettes * | array | Palette indices, one picked per piece. A single integer works too. |
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
clump | number | 0 spreads pieces evenly over the box; 1 piles them in its middle. Defaults to 0.5. |
count | integer | Pieces, 0..=2000. Defaults to 20. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
floor | integer | Lowest z a piece may rest at. Defaults to the box's bottom. |
kinds | array | Piece kinds to mix. shard is a flat wedge, chip a flake one cell thick, pebble a squashed ellipsoid, chunk a block with chipped corners. Defaults to all four. |
seed | integer | Seed. Defaults to 0. |
size | array | Piece size [min, max] in cells, 1..=16, or one number. Defaults to [1, 3]. |
joints
Cut real joint gaps into the solid cells of an inclusive box of the active object, for fractured limestone, masonry, and cracked rock. The cells are split into stones by pattern: columns (vertical columns of random widths, seen from above as a jittered grid, with a bed joint now and then), courses (horizontal courses of blocks whose vertical joints shift from course to course, a running bond), or cracks (an irregular network between jagged pieces). Cells on a boundary are removed down to depth cells under the surface; the solid cell at the bottom of each gap takes the dirt slot. exclude boxes…
| Parameter | Type | Description |
|---|---|---|
pattern * | string | columns, courses (running bond), or cracks |
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
course | array | Course height range [min, max] in cells, 1..=128 (courses), or the spacing of bed joints across a column (columns). Defaults to [3, 5] and [10, 24]. Cracks ignore it. |
density | number | cracks: the share of piece boundaries that crack, 0..=1. Defaults to 0.6. |
depth | integer | Gap depth under the surface in cells, 1..=16. Defaults to 2. |
dirt | integer | Palette index for the solid cell at the bottom of each gap, such as dark dirt. Omit to keep its colour. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
only | array | Cut only cells of these palette indices (the stone slots), so moss and plants stay. Omit to cut every slot. |
seed | integer | Seed. Defaults to 0. |
spacing | array | Stone width range [min, max] in cells, 2..=128, or one number: column width, block length, or crack piece size. Defaults to [4, 9] for columns, [6, 11] for courses, [6, 11] for cracks. |
width | integer | Gap width in cells, 1..=3. Defaults to 1. |
column_relief
Break a cliff face of the active object into columns, for fractured limestone cliffs: along the face, columns of random width stand out of it by a random amount and end at uneven heights around the crown. The face is found in the cells of the inclusive box, so a swept, curved wall works: for each step along it, the median of the frontmost solid cell of every row up to the crown, which a ledge does not pull forward. A column fills empty cells from depth cells behind the face to out cells in front of it, from the box's bottom to its top. With lower (the default), a column that ends below the cro…
| Parameter | Type | Description |
|---|---|---|
facing * | string | array | The face's outward direction, along x or y: +x, -x, +y, -y, or a vector such as [0, -1, 0]. |
palette * | integer | Palette index of the columns, usually the stone. |
x0 * | integer | Inclusive box corner; a few cells larger than the wall so columns can stand out of it |
x1 * | integer | Inclusive box corner; a few cells larger than the wall so columns can stand out of it |
y0 * | integer | Inclusive box corner; a few cells larger than the wall so columns can stand out of it |
y1 * | integer | Inclusive box corner; a few cells larger than the wall so columns can stand out of it |
z0 * | integer | Inclusive box corner; a few cells larger than the wall so columns can stand out of it |
z1 * | integer | Inclusive box corner; a few cells larger than the wall so columns can stand out of it |
crown | integer | Height the column tops scatter around. Defaults to the highest solid cell in the box. |
depth | integer | How far a column reaches back into the face, and how deep the cut above a short column goes, 1..=16 cells. Defaults to 3. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
lower | boolean | A column ending below the crown cuts the wall above it, so the crown is uneven. false only adds cells (only rising). Defaults to true. |
out | array | How far a column stands out of the face, [min, max] cells, 0..=16, or one number. Defaults to [1, 4]. |
seed | integer | Seed. Defaults to 0. |
top | array | Column top range [min, max] relative to the crown in cells, -256..=256: negative ends short of it, positive rises above it. Defaults to [-8, 4]. |
width | array | Column width range [min, max] along the face in cells, 1..=64, or one number. Defaults to [6, 12]. |
weather
Weather the exposed cells of an inclusive box of the active object: chip edges and corners (small irregular chunks off cells exposed on two or more sides), dent flat faces with pits (real holes, not paint), and add subtle colour noise in soft patches. The faces a chip or pit uncovers take the broken slot, usually a slightly darker stone (not dirt). exclude boxes keep walking surfaces whole. Deterministic for a seed. A box of at most 2000000 cells. One undo step. Replies with chips, pits, removed, broken, and recoloured.
| Parameter | Type | Description |
|---|---|---|
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
broken | integer | Palette index for the faces a chip or pit uncovers, about 0.9 x the stone. Omit to keep their colour. |
chip | number | Chance that an edge cell starts a chip, 0..=1; corners are likelier. Defaults to 0.15. 0 chips nothing. |
chipSize | integer | Most cells one chip takes, 1..=8. Defaults to 2. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
noise | array | Palette indices of the colour noise, a few tones within a few units of the stone. Omit for no noise. |
noiseDensity | number | Share of exposed cells the noise recolours, 0..=1. Defaults to 0.35. |
noiseScale | number | Noise patch size in cells, 1..=32. Defaults to 3. |
only | array | Act only on cells of these palette indices (the stone slots). Omit to act on every slot. |
pitDepth | integer | Deepest pit in cells, 1..=4. Defaults to 1. |
pits | number | Chance that a flat face cell starts a pit, 0..=1. Defaults to 0.02. |
seed | integer | Seed. Defaults to 0. |
moss
Grow moss on the exposed faces of an inclusive box of the active object that pass the face filter. style caps (the default): cushions on tops (where the top face passes), moss on undersides when faces takes bottom, and curtains running down side faces from a top edge, each with a ragged end; coverage comes in soft patches mixed with speckle by noise. style cushions: separate irregular cushions and patches of size cells where the surface faces up (its normal within exposure of up, or of facing), kept gap cells apart until amount of those cells is covered, so moss never forms one continuous band…
| Parameter | Type | Description |
|---|---|---|
palettes * | array | Plant palette indices. A single integer works too. |
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
amount | number | Coverage, 0..=1: of the passing faces (caps), or of the exposed cells (cushions). Defaults to 0.5 for caps and 0.45 for cushions. |
band | array | Only cells with z in [low, high], such as a waterline band. algae thins from its bottom to its top and uses the box's height without one. |
curtains | number | caps: share of moss-capped top edges a curtain runs down from (any top edge when faces leaves out top), 0..=1. Defaults to 0.3. 0 grows caps only. |
drapes | number | cushions: share of cushion edges over a drop that a drape hangs from, 0..=1 (layer grow). Defaults to 0.35. 0 hangs none. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
exposure | number | cushions: how far a cell must face up (or facing) to take moss, the cosine of its surface normal with that direction, -1..=1. 0 takes the upper half of a log, 0.7 only its crown. Defaults to 0.35. |
faces | string | array | Faces it grows on: top, side, bottom, all, or a list of them. Defaults to top and side. |
facing | array | Only faces whose outward normal points within 60 degrees of this direction, such as [0, -1, 0] for the front or [0, 0, -1] for undersides. Without faces, facing considers every face (vines: side); a f… |
gap | integer | cushions: fewest cells between two cushions, 1..=8. Defaults to 2. |
layer | string | grow adds cells on the empty side of each face; paint recolours the surface. Defaults to grow, paint for algae. vines always grow. |
length | array | Curtain length range [min, max] in cells, 1..=64 (caps), or drape length, 1..=32 (cushions), or one number. Defaults to [2, 8] for caps and [2, 6] for cushions. |
noise | number | 0 grows in smooth patches, 1 in ragged speckle. Defaults to 0.5. |
only | array | Grow only on cells of these palette indices (the stone slots). Omit for every slot. |
seed | integer | Seed. Defaults to 0. |
size | array | cushions: cushion radius range [min, max] in cells, 1..=16, or one number. Defaults to [2, 5]. |
style | string | caps (default): caps and curtains. cushions: separate cushions on exposed cells with drapes from overhangs. |
thickness | integer | Cushion thickness, 1..=3 on caps tops, 1..=4 at a cushion's middle (layer grow). Defaults to 1 for caps and 2 for cushions. |
algae
Paint algae on the exposed faces of an inclusive box of the active object inside a height band, usually the waterline: dense at the bottom of the band and thinning upward in noisy clumps with stone peeking through. palettes go from the bottom of the band to its top (a darker tone low, a lighter one high). Deterministic for a seed. A box of at most 2000000 cells. One undo step. Replies with added and painted.
| Parameter | Type | Description |
|---|---|---|
palettes * | array | Plant palette indices. A single integer works too. |
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
amount | number | Coverage at the bottom of the band, 0..=1. Defaults to 0.9. |
band | array | Only cells with z in [low, high], such as a waterline band. algae thins from its bottom to its top and uses the box's height without one. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
faces | string | array | Faces it grows on: top, side, bottom, all, or a list of them. Defaults to top and side. |
facing | array | Only faces whose outward normal points within 60 degrees of this direction, such as [0, -1, 0] for the front or [0, 0, -1] for undersides. Without faces, facing considers every face (vines: side); a f… |
layer | string | grow adds cells on the empty side of each face; paint recolours the surface. Defaults to grow, paint for algae. vines always grow. |
noise | number | 0 grows in smooth patches, 1 in ragged speckle. Defaults to 0.5. |
only | array | Grow only on cells of these palette indices (the stone slots). Omit for every slot. |
seed | integer | Seed. Defaults to 0. |
vines
Hang vine strands from the top edges of an inclusive box of the active object: each strand starts beside an edge cell whose side passes the face filter and falls straight down through empty cells, wandering a little along the edge with noise, until its length or something solid below. palettes are graded from the anchor to the tip, so give them motion sway rising from the anchor (set_palette motion). blooms adds an occasional bloom cell beside a strand. Only empty cells are written. Deterministic for a seed. A box of at most 2000000 cells, at most 400000 cells written. One undo step. Replies w…
| Parameter | Type | Description |
|---|---|---|
palettes * | array | Plant palette indices. A single integer works too. |
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
amount | number | Share of top edge cells a strand starts from, 0..=1. Defaults to 0.08. |
band | array | Only cells with z in [low, high], such as a waterline band. algae thins from its bottom to its top and uses the box's height without one. |
bloomChance | number | Chance of a bloom beside each strand cell, 0..=1. Defaults to 0.06. |
blooms | array | Palette indices of blooms beside the strands. Omit for none. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
faces | string | array | Faces it grows on: top, side, bottom, all, or a list of them. Defaults to side. |
facing | array | Only faces whose outward normal points within 60 degrees of this direction, such as [0, -1, 0] for the front or [0, 0, -1] for undersides. Without faces, facing considers every face (vines: side); a f… |
layer | string | grow adds cells on the empty side of each face; paint recolours the surface. Defaults to grow, paint for algae. vines always grow. |
length | array | Strand length range [min, max] in cells, 1..=128, or one number. Defaults to [4, 16]. |
noise | number | 0 grows in smooth patches, 1 in ragged speckle. Defaults to 0.5. |
only | array | Grow only on cells of these palette indices (the stone slots). Omit for every slot. |
seed | integer | Seed. Defaults to 0. |
bark
Cut bark into the wood in an inclusive box of the active object, along the grain: the direction is an axis (x, y, z, or a vector, through the middle of the solid cells) or the local direction of points, the same points (and curve) as the fill_tube or sweep that made the trunk, branch, or root. The surface is split into long plates of varied width (around the wood) and length (along it), separated by fissures cut depth cells into the wood, the cell at the bottom of each taking the dirt slot. Plate ends sit at other heights than the next column's, as on a real trunk, and cracks share of the plat…
| Parameter | Type | Description |
|---|---|---|
palettes * | array | Plate slots, a few bark tones within a few units of each other; each plate takes one. |
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
axis | string | array | The grain along a straight axis: x, y, z, or a vector [x, y, z]. Pass this or points. |
cracks | number | Share of plates with a crack part way across, 0..=1. Defaults to 0.25. |
curve | string | With points: polyline (default) or smooth, as the tube used. |
depth | array | Fissure depth range [min, max] in cells, 1..=4, or one number. Plate ends and cracks take the minimum. Defaults to [1, 2]. |
dirt | integer | Palette index for the cell at the bottom of each fissure, a dark brown. Omit to keep its colour. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
length | array | Plate length range [min, max] in cells along the grain, 2..=256, or one number. Defaults to [8, 20]. |
only | array | Act only on cells of these palette indices (the wood). Omit to act on every slot. |
points | array | The grain along a path: [x, y, z] points, or the fill_tube ([x, y, z, radius]) or sweep ([x, y, z, twist, scale]) points of the wood, whose extra numbers are ignored. Pass this or axis. |
seed | integer | Seed. Defaults to 0. |
width | array | Plate width range [min, max] in cells around the wood, or across a flat plate, 1..=64, or one number. Defaults to [3, 6]. |
planks
Lay a deck, floor, or dock of separate boards over a rectangle of the active object at height z, along an axis, instead of dozens of fill_box and carve calls or painted stripes. Rows of random width tile the rectangle across the axis; each row is split into boards of random length, with end joints kept clear of those of the neighbouring rows. Gaps (between rows and at end joints) are empty down through the boards, with a dirt cell under them. Each board takes one tone, never that of the board before it in the row and as seldom as it can that of the boards beside it, and a row with room for a j…
| Parameter | Type | Description |
|---|---|---|
axis * | string | The way the boards run. |
palettes * | array | Board tones, at least two different slots, ideally three or more within a few units of each other; each board takes one. |
x0 * | integer | Inclusive corner of the rectangle |
x1 * | integer | Inclusive corner of the rectangle |
y0 * | integer | Inclusive corner of the rectangle |
y1 * | integer | Inclusive corner of the rectangle |
z * | integer | The top layer of the boards: they run from z down through thickness layers, and the dirt cell lies under them. |
dark | integer | Palette index of nails and knots. Omit for neither. |
dirt | integer | Palette index of the cell under each gap, a dark brown. Omit to leave that cell as it is, so a gap over nothing is open. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
gap | array | number | Gap width between boards in cells, a number or [min, max], 1..=8. Defaults to 1. |
knots | number | Share of boards with a dark knot along the middle, 0..=1, with dark. Defaults to 0.15. |
length | array | number | Board length range along the axis in cells [min, max], 2..=256. Defaults to [8, 20]. |
nails | number | Share of boards with a dark nail near each end, 0..=1, with dark. Defaults to 0.25. |
only | array | Act only on solid cells of these palette indices, such as a deck already filled to a curved outline. Omit to lay boards over the whole rectangle. |
ragged | number | Chance per cell across a board's end that it is cut back 1 or 2 cells, 0..=1, about 0.3 for old wood. Defaults to 0: square ends. |
seed | integer | Seed. Defaults to 0. |
thickness | integer | Layers of board, the gaps run through them all, 1..=16. Defaults to 2. |
width | array | number | Board width range across the axis in cells [min, max], 1..=64. Defaults to [3, 6]. |
cavity_tint
Shade depth into the exposed cells of an inclusive box of the active object without hand painting: each cell counts the solid cells in a ball of radius around it, a curvature or ambient occlusion estimate. Cells in concave spots (fissures, crevices, the crook of a root, the foot of a wall) more than dark take a darker slot; with lighten, cells on convex ridges and corners more than light take a lighter one. pairs names the slots ([slot, darker] or [slot, darker, lighter]); without pairs each slot gets shades of its own colour (darken and brighten times it, with its material) in free palette sl…
| Parameter | Type | Description |
|---|---|---|
x0 * | integer | Inclusive box corner |
x1 * | integer | Inclusive box corner |
y0 * | integer | Inclusive box corner |
y1 * | integer | Inclusive box corner |
z0 * | integer | Inclusive box corner |
z1 * | integer | Inclusive box corner |
brighten | number | Without pairs: the lighter shade's colour as a factor of the slot's, above 1 up to 4. Defaults to 1.18. |
dark | number | How concave a cell must be to darken, 0..=1: 0 a flat face, 1 a closed pocket. Defaults to 0.12. |
darken | number | Without pairs: the darker shade's colour as a factor of the slot's, 0.05..1. Defaults to 0.72. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
light | number | With lighten: how convex a cell must be to lighten, 0..=1: 0 a flat face, 1 a lone spike. Defaults to 0.25. |
lighten | boolean | Also lighten exposed ridges and corners. Defaults to false. |
only | array | Act only on cells of these palette indices. Omit to act on every slot. |
pairs | array | [slot, darker] or [slot, darker, lighter] per slot (0 leaves that tint out). Slots without a pair stay. Omit to make shades. |
radius | integer | Radius of the ball counted around each cell, 1..=4. Larger finds broader hollows. Defaults to 2. |
radial_relief
Cut regular, shallow, sloped recesses repeated evenly round an axis into the active object, for architecture and turned or coopered pieces: kind flutes are grooves along the side of a column, pilaster, vase, urn, or barrel, spaced evenly along each slice's outline (so a square shaft gets as many per face, a round one evenly by angle) and following the outer surface the cells have; kind gores dish each segment of a dome between two meridian lines toward its middle, the ribs between them staying proud, fading to nothing at the crown and over fade cells at the foot (from). count recesses round th…
| Parameter | Type | Description |
|---|---|---|
count * | integer | How many recesses round the axis, 1..=256. |
kind * | string | flutes: grooves along a shaft's side. gores: a dome's segments dished between meridian ribs. |
axis | string | The axis the recesses repeat round. Defaults to z. |
brighten | number | With light true: the light tone's colour as a factor of the slot's, above 1 up to 4. Defaults to 1.18. |
center | array | The axis in the plane across it, [a, b] as the two other coordinates in x, y, z order (for axis z, [x, y]); cell centres are whole numbers. Defaults to the middle of the solid's extent in the box and… |
darken | number | With shade true: the shade's colour as a factor of the slot's, 0.05..1. Defaults to 0.72. |
depth | number | Deepest recess depth, 0.5..=4 cells, in from the outer surface. Defaults to 1. |
ends | string | How a recess ends over fade cells: round (a cupped end, the default), taper (a straight ramp), or square (full depth to the end). |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
fade | number | Cells over which a recess fades in from its ends (flutes; default the width, at least 2) or from the foot (gores; default 6), 0..=128. Gores also fade toward the crown. |
from | integer | First cell along the axis: the flutes' lower end, the dome's foot. Defaults to the solid's lowest cell in the box. |
jitter | number | Share of random change in each recess's depth and place, 0..=1. Defaults to 0: architecture is regular. |
light | integer | boolean | Tone of the slope cells by the ridges: a palette slot, true for a lighter shade of each cell's own slot, or false (the default) for none. |
only | array | Act only on cells of these palette indices. Omit to act on every slot. |
phase | number | Turns the pattern, in degrees: for flutes a share of the outline's length (360 a whole turn), for gores an angle from the +x (axis z), +y (axis x), or +x (axis y) side. 0 puts a ridge or rib at 0. Def… |
profile | string | Section across a recess: u (round-bottomed, the default), v (straight sides), or flat (a flat floor over the middle half, sloped sides). |
ribHeight | integer | Raise the ribs by this many cells, 0..=4, in the ribs slot (or the slot under them). Defaults to 0. |
ribWidth | number | Gores: width of the rib line between two gores, 0..=16 cells. Defaults to 2, which keeps a rib whole down a steep side. |
ribs | integer | Palette slot of the lines between recesses (a dome's ribs, a column's fillets), and of raised rib cells. Omit to leave them as they are. |
seed | integer | Seed of the jitter. Defaults to 0. |
shade | integer | boolean | Tone of the floor cells in the middle of each recess: a palette slot, true (the default) for a darker shade of each cell's own slot, or false for none. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
to | integer | Last cell along the axis: the flutes' upper end, the dome's top. Defaults to the solid's highest cell in the box. |
width | number | Flutes: cells across each flute, 0.5..=64, at most the pitch. Defaults to 0.6 of the pitch (the outline's length over count). |
x0 | integer | Inclusive box corner the writes stay inside. Each is optional: a side not given is open, so z0 and z1 alone bound a column's height. |
x1 | integer | Inclusive box corner the writes stay inside. Each is optional: a side not given is open, so z0 and z1 alone bound a column's height. |
y0 | integer | Inclusive box corner the writes stay inside. Each is optional: a side not given is open, so z0 and z1 alone bound a column's height. |
y1 | integer | Inclusive box corner the writes stay inside. Each is optional: a side not given is open, so z0 and z1 alone bound a column's height. |
z0 | integer | Inclusive box corner the writes stay inside. Each is optional: a side not given is open, so z0 and z1 alone bound a column's height. |
z1 | integer | Inclusive box corner the writes stay inside. Each is optional: a side not given is open, so z0 and z1 alone bound a column's height. |
foliage
Build a clustered broadleaf tree crown on the active object, as pixel-art trees draw one: many separate leaf clumps with sunlit tops, darker undersides, and dark gaps between them, instead of one smooth blob. The crown volume is ellipsoids and boxes, or from (the existing cells of some slots, to re-cluster a crown already sculpted; those no clump keeps are removed), or both. Clump centres are packed over the volume's surface with Poisson-like spacing (no two closer than their sizes and gap allow); each clump is a flattened ellipsoid with a ragged, leafy outline that bulges out of the surface.…
| Parameter | Type | Description |
|---|---|---|
palettes * | array | 1 to 8 leaf slots from the darkest to the lightest: shade, mid, light, sunlit tips. |
boxes | array | Crown volume: inclusive [x0, y0, z0, x1, y1, z1] boxes. |
core | integer | Palette index of the dark core inside the crown, seen in the gaps. Defaults to the first of palettes. |
dark | number | How strongly undersides and seams darken toward the first palette, 0..=2. Defaults to 1. |
ellipsoids | array | Crown volume: [x, y, z, radius] or [x, y, z, rx, ry, rz] per ellipsoid, up to 64 shapes with boxes. A broad middle and a few lobes read as a tree. |
exclude | array | Boxes left alone: one inclusive box [x0, y0, z0, x1, y1, z1] or a list of up to 64, such as a ledge top, a cave floor, or a river bed (the solid top layer, the air above it, or both). No cell inside o… |
flatten | number | Clump height over width, 0.2..=1.5; below 1 clumps are wider than tall. Defaults to 0.7. |
from | array | Crown volume: the existing cells of these slots (in the box). Re-clusters a crown already sculpted; its cells no clump or core keeps are removed. |
gap | number | Extra cells between neighbouring clumps, 0..=8. Larger shows more dark core between them. Defaults to 1. |
groove | integer | With masses: how many cells deeper the grooves between lobes go, 0..=8. Defaults to 2. |
light | number | How strongly sunlit tops lighten toward the last palette, 0..=2. Defaults to 1. |
masses | integer | Lobes the clumps are grouped into, 0..=16, split by deeper grooves and each with its own tone. 0 (the default) is none. |
protect | array | Slots never written, even when they are also crown slots. Any slot not in palettes, core, or from is already kept (the wood). |
ragged | number | Leafy outline noise of each clump, 0..=1. 0 is a smooth ellipsoid. Defaults to 0.4. |
seed | integer | Seed. Defaults to 0. |
size | array | Clump radius range [min, max] in cells, 1..=32, or one number. Defaults to [3, 6]. |
sun | array | Direction toward the sun [x, y, z], Z up. Defaults to [-0.35, -0.45, 1], high at the front left. |
x0 | integer | Inclusive box corner the writes stay inside. Omit all six to bound the crown by its volume. |
x1 | integer | Inclusive box corner the writes stay inside. Omit all six to bound the crown by its volume. |
y0 | integer | Inclusive box corner the writes stay inside. Omit all six to bound the crown by its volume. |
y1 | integer | Inclusive box corner the writes stay inside. Omit all six to bound the crown by its volume. |
z0 | integer | Inclusive box corner the writes stay inside. Omit all six to bound the crown by its volume. |
z1 | integer | Inclusive box corner the writes stay inside. Omit all six to bound the crown by its volume. |
sweep
Fill a 2D cross-section along a path of 2..=1024 local points, kept perpendicular to it, for curved walls, banks, ledges, and kerbs with no corners. The profile's u runs to the left of the path (seen from above, walking along it) and v up, so a wall profile stands on the path; a whole-number point is a cell centre. profile is a polygon of [u, v] points, or width (across, centred on the path), height (up from it), and radius (rounded corners) give a rounded rectangle. Each point may carry its own twist (degrees about the path) and scale, interpolated along it. curve smooth passes a Catmull-Rom…
| Parameter | Type | Description |
|---|---|---|
points * | array | Path points: [x, y, z], [x, y, z, twist], [x, y, z, twist, scale], or {x, y, z, twist?, scale?}. twist is degrees counter-clockwise looking along the path (default 0); scale multiplies the profile, 0.… |
curve | string | polyline (default) or smooth |
height | number | Rounded rectangle height up from the path, 0.5..=512. Used without profile. |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells. |
palette | integer | Palette index, 0 to erase the solid cells it covers, or pass palettes |
palettes | array | Palette indices 1..=255 laid out by pattern |
pattern | string | bands (default) by height v in the profile, period cells each, like strata; rings along the path; random per cell |
period | number | Band or ring size in cells, 0.5..=512. Defaults to 2. |
profile | array | Closed polygon of 3..=256 [u, v] points in cells: u to the left of the path, v up. Omit to use width, height, and radius. |
radius | number | Rounded rectangle corner radius, 0 up to half the smaller side. Defaults to 0. |
seed | integer | Seed of the random pattern. Defaults to 0. |
width | number | Rounded rectangle width across the path, centred on it, 0.5..=512. Used without profile. |
trim_outline
Reshape the active object from outside: remove every solid cell outside a surface given as a closed plan outline and an inset per height, so a finished hull narrows toward its keel in one call. The surface at height z is the outline moved inward by inset(z); a cell stays when its centre is at least that far inside the outline. Use it when everything outside goes; sweep with palette 0 cuts a band along a path instead. skin lays a new skin of that slot along the surface, thickness cells inward, because the cut exposes whatever was inside: where the cut reached, solid cells are recoloured and a h…
| Parameter | Type | Description |
|---|---|---|
outline * | array | The closed plan outline: 3..=1024 local [x, y] points in either winding, a whole number being a cell centre. Do not repeat the first point (a repeat is ignored). |
curve | string | polyline (default) or smooth, a closed curve through the points |
inset | number | array | How far inward the surface stands: one number for every height, or [z, inset] pairs going up in z, linear between them and the end value beyond them. A negative inset stands outside the outline. Defau… |
only | array | Palette slots to remove or recolour; others stay. Defaults to every slot. |
skin | integer | Palette slot of a new skin along the surface. Omit for none. |
thickness | number | The skin's thickness inward from the surface, 1..=64 cells, across a layer and into the layers above and below on a slope. Defaults to 1. |
x0 | integer | Box corner (optional; with all six, nothing outside the box is removed or written) |
x1 | integer | Box corner |
y0 | integer | Box corner |
y1 | integer | Box corner |
z0 | integer | Box corner |
z1 | integer | Box corner |
deform
Reshape the active object, or the solid cells of an inclusive box of it (x0..z1, all six or none), so a trunk, root, limb, or rock stops reading as a pipe or a box. op bend curls the cells toward direction by angle degrees over length cells of the axis from origin, and carries the rest on straight; taper scales them across the axis from start at the origin to end at the end of the length; twist turns them about the axis by angle degrees over the length; displace pushes the surface in and out with fractal 3D noise of amplitude cells, bumps about scale cells wide, octaves finer layers, and bias…
| Parameter | Type | Description |
|---|---|---|
op * | string | The deform. |
amplitude | number | displace: the most the surface moves, 0.5..=32 cells. Defaults to 2. |
angle | number | bend: degrees, -180..=180 (negative bends away from direction). twist: degrees over the length. |
axis | string | bend, taper, twist: the axis they run along. Defaults to z. |
bias | number | displace: -1 only dents, 0 dents and bulges (default), 1 only bulges. |
center | array | bend, taper, twist: the line they work about, [a, b] as the two other coordinates in x, y, z order (for axis z, [x, y]). Defaults to the cells' mean. |
direction | string | bend: the way the cells curl, across the axis. Defaults to +x for axis z, else +z. |
end | number | taper: scale at the end of the length, 0.05..=16. Defaults to 0.5. |
factor | number | array | scale: how much larger, 0.25..4, or [x, y, z] per axis. Defaults to 1.5. |
falloff | number | scale: cells (before scaling) over which the scale eases back to none, 0.5..512. Defaults to radius. |
length | number | bend, taper, twist: how far along the axis they run, 0.5..=4096. Defaults to the cells' extent. |
minFeature | integer | Any op: report the parts of the object thinner than this many cells after the deform, 2..16. |
octaves | integer | displace: 1..=6 layers, each half the size and height. Defaults to 2. |
origin | number | bend, taper, twist: where along the axis they start, in local cells. Defaults to the cells' lowest. |
point | array | scale: the centre of the part, local cells [x, y, z]. |
radius | number | scale: cells around point scaled as one piece, 0.5..512. |
scale | number | displace: bump size in cells, 1..=512. Defaults to 8. |
seed | integer | displace: noise seed. Defaults to 0. |
start | number | taper: scale at the origin, 0.05..=16. Defaults to 1. |
x0 | integer | Region corner (optional; with all six only the box's cells change) |
x1 | integer | Region corner |
y0 | integer | Region corner |
y1 | integer | Region corner |
z0 | integer | Region corner |
z1 | integer | Region corner |
blend_shapes
Fill simple shapes blended as signed distance fields with a smooth minimum, so they flow into each other like clay instead of sticking together as separate balls and bricks: statues, creatures, topiary, roots, snowmen, any organic form built from a body, a head, eyes, and limbs. shapes is a list applied in order; each is {shape: sphere (center, radius) | ellipsoid (center, radii [rx, ry, rz] or radius) | box (center, size [sx, sy, sz] in cells, round: edge radius) | capsule (from, to, radius or radii [r0, r1] for a taper, or points [[x, y, z, r], ...] for a bent limb) | torus (center, radius t…
| Parameter | Type | Description |
|---|---|---|
shapes * | array | 1..=256 shapes in order: {shape: sphere | ellipsoid | box | capsule | torus, center?, radius?, radii?, size?, round?, from?, to?, points?, thickness?, rotate?, op?: union | subtract | intersect, k?, p… |
colors | string | nearest (default): the slot of the union shape the cell is deepest inside. last: the last listed union shape whose own body holds the cell, else nearest. |
grow | number | Fill where the blended distance is at most this, -16..=16 cells: above 0 thickens the whole form, below 0 thins it. Defaults to 0. |
k | number | Default smoothing radius in cells for every shape that leaves k out, 0..=64. 0 is a hard union. Defaults to 3. |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
mode | string | replace (default) writes every cell of the blend; empty only empty cells; paint recolours only solid cells; intersect erases the solid cells outside the blend and keeps the rest as they are. |
palette | integer | Default palette slot of union shapes that leave palette out, 0..255 (0 erases). |
seam | number | With colors nearest: dither the boundary between two shapes' slots over this many cells, 0..=32. Defaults to 0, a sharp boundary. |
seed | integer | Seed of the seam dither. Defaults to 0. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
x0 | integer | Optional inclusive box that clips the evaluation; pass all six corners or none. |
x1 | integer | Box corner |
y0 | integer | Box corner |
y1 | integer | Box corner |
z0 | integer | Box corner |
z1 | integer | Box corner |
loft
Fill a solid along a path of 2..=1024 local points whose cross-section changes from point to point, for trunks, roots, limbs, and branches that taper, bend, and are egg-shaped and knobbly in one call instead of a round fill_tube. Each point's section is an ellipse with rx (half-width across the path) and ry (half-height along the frame's normal, up for a level path), turned by roll degrees, cut flat by flatTop (0 none, 1 halves it at the path; negative flattens the bottom, for a log lying on the ground), with an outline noise of noise (a fraction of the radius, 0..=0.9) and about frequency lum…
| Parameter | Type | Description |
|---|---|---|
points * | array | Path points: [x, y, z], [x, y, z, r], [x, y, z, rx, ry], [x, y, z, rx, ry, roll], or {x, y, z, radius?, rx?, ry?, roll?, flatTop?, noise?, frequency?}. Radii 0.5..=128; a whole-number point is a cell… |
caps | string | flat (default) or round ends. |
curve | string | polyline (default) or smooth |
flatTop | number | Default flat side, -1..=1: above 0 cuts the top at ry * (1 - flatTop), below 0 the bottom. Defaults to 0. |
frequency | number | Default lumps around the outline, 0..=64. Defaults to 5. |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells. |
noise | number | Default outline noise as a fraction of the radius, 0..=0.9. Defaults to 0. |
palette | integer | Palette index, or pass palettes |
palettes | array | Palette indices laid out by pattern |
pattern | string | rings (default) along the length, stripes around it, random per cell |
period | number | Ring length in cells, 0.5..=512. Defaults to 2. |
radius | number | Default rx and ry of points that leave them out. |
roll | number | Default roll of the section about the path, in degrees. Defaults to 0. |
rx | number | Default half-width across the path. |
ry | number | Default half-height. Defaults to rx. |
sectors | integer | Stripes around, 1..=256. Defaults to the number of palettes. |
seed | integer | Seed of the outline noise and the random pattern. Defaults to 0. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
brush
Sculpt the active object's surface with brush dabs along a path of points, like Blender's clay and grab brushes, to refine a silhouette after the rough form. op inflate pushes the surface out by up to strength x radius / 2 cells at each dab's centre; deflate (or dig) pushes it in the same way; smooth blurs solid and empty cells so bumps and pits melt (strength sets the passes); flatten cuts bumps and fills pits toward the mean plane of the surface under the dab; grab (or drag) moves the cells under each dab by vector cells times strength, with the falloff, so it pulls a branch stub out or bend…
| Parameter | Type | Description |
|---|---|---|
op * | string | The brush. |
points * | array | Dab centres in local cells: [x, y, z], [x, y, z, radius], [x, y, z, radius, strength], or {x, y, z, radius?, strength?}. |
falloff | string | How a dab fades to its radius. Defaults to smooth. |
only | array | Palette indices the brush may change; other cells stay. Omit for all. |
palette | integer | Slot of added cells. Defaults to the nearest solid cell's. |
radius | number | Default dab radius in cells, 0.5..=64. Defaults to 3. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
spacing | number | Most cells between dabs, 0..=256; 0 lays one per point. Defaults to half the radius. |
strength | number | Default strength, 0..=1. Defaults to 0.5, or 1 for grab. |
vector | array | grab: [dx, dy, dz] cells a dab's centre moves at strength 1; at most the radius. |
carve_from_views
Fill the visual hull of 2 to 6 orthographic views of a concept's turnaround sheet into the active object: each view's silhouette is extruded through a box along its depth axis and the cells every view covers are kept, so the rough form of a front, side, and top view becomes 3D in one call. With a depth map per view (depth, depthPath) the cells in front of each view's depth surface are carved away too (space carving with depth), so a round head or a dome comes out round instead of a box; one view with depth is enough for a relief. A view's depth is a grey depth map of the same crop (white near,…
| Parameter | Type | Description |
|---|---|---|
views * | array | 2 to 6 views (1 with depth), one per side: {view: front | back | left | side | right | top | bottom, path (a PNG) | rows (strings; . and space are empty) + legend ({char: palette index or #rrggbb}), c… |
alphaThreshold | number | Alpha below this is background, 1..255, for every view without its own. Defaults to 128. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b], for every view without its own. |
cellsPerPixel | number | Cells per image pixel for every view without its own size or cellsPerPixel, such as 0.25 for 4 pixels a cell. |
coverage | number | Share of a cell's footprint in a view that must be inked, 0..1. Defaults to 0.5. |
depthPath | string | A grey depth sheet (white near) laid out as the colour sheet: every view without depth false takes its depth from this image at the view's crop. |
depthTolerance | number | Cells in front of a depth surface that still stay, 0..64. Defaults to 0. |
downscale | boolean | object | Pixelate every view first at the cell grid, as pixelate_views does (true, or its options {colors, coverage, thin, features, lines, outline, mergeLines, accents, minShare, contrast, maxAccents}), so a… |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash, for every view without its own. |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells; intersect keeps only the object's solid cells inside the sh… |
origin | array | Local cell of the box's minimum corner. Defaults to [0, 0, 0]. |
palette | integer | One palette index for every cell, instead of the views' colours. |
path | string | The sheet PNG for every view without its own path or rows. |
shell | integer | Keep only cells within this many cells of the outside, 1..64: a hollow shell. Omit for solid. |
size | array | Box [x, y, z] in cells, 1..2048 each; null takes the largest view along that axis. |
slots | array | Palette indices image colours quantise to. Defaults to all of 1..255. A legend's palette index is used as it is. |
smooth | integer | Passes of smooth over the hull, 0..64 (fillAt 17, removeAt 9). Defaults to 0. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
tolerance | number | RGB distance from the key colour that is still background, 0..442, for every view without its own. Defaults to 40. |
project_paint
Recolour the active object's existing surface from ONE image projected along a view direction, such as a shell's plate pattern from a top view or face markings from the front: cells are never added or removed. The image is a PNG path with a crop [x, y, width, height], or rows of characters with a legend, with the background rule of carve_from_views (auto, alpha, or a key colour; alpha on an opaque image inks every pixel) and its mask edits (excludeColors, flood, mask, erase, keepLargest); background pixels leave the surface alone. view is front, back, left (also side), right, top, or bottom, s…
| Parameter | Type | Description |
|---|---|---|
alphaThreshold | number | Alpha below this is background, 1..255. Defaults to 128. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b]. |
cellsPerPixel | number | Cells per image pixel, such as 0.25 for 4 pixels a cell. Defaults to stretching the image over the box. |
coverage | number | Share of a grid cell's footprint that must be inked, 0..1. Defaults to 0.5. |
crop | array | [x, y, width, height] of the image in pixels. Defaults to the whole image. |
depth | integer | Solid cells painted per ray from the visible surface, 1..64. Defaults to 1. |
erase | array | Rectangles [x, y, width, height] in image pixels (as crop is) whose pixels go: a rider, a label. |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
flip | boolean | Mirror the image left to right. |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
imageSize | array | [across, down] cells the image spans, instead of cellsPerPixel. |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash. |
legend | object | rows: {char: palette index or #rrggbb}. |
mask | string | object | A mask image: a PNG path or {path, crop, background, tolerance, alphaThreshold, invert}. It is cut as a view is (auto background: transparent pixels, else the border colour, so white on black works),… |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
normalLimit | number | Degrees, 0..90: leave a surface whose normal is further than this from the view direction. Omit for no limit. |
only | array | Palette indices that may be repainted; other cells keep their slot. Omit for all. |
origin | array | Local cell of the box's minimum corner. Defaults to the object's. |
palette | integer | One palette index for every inked pixel, instead of the image's colours. |
path | string | The image PNG. |
pitch | number | Degrees above the horizon, -90..90; 90 looks straight down. Instead of view. |
rows | array | The image as rows of characters instead of path; . and space are background. |
size | array | Box [x, y, z] in cells, 1..2048 each; null (or leaving it out) reaches the object's far side. |
slots | array | Palette indices image colours quantise to. Defaults to all of 1..255. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
tolerance | number | RGB distance from the key colour that is still background, 0..442. Defaults to 40. |
view | string | The side the image looks from. Or pass yaw and pitch. |
yaw | number | Degrees about +Z, as preview takes it: 0 looks from +X, -90 from the front (-Y). Instead of view. |
paint_from_views
Recolour EVERY surface cell of the active object (or of the objects in objects, together, each hiding what is behind it from the others) from a whole orthographic views sheet in one call, so an image-to-3D shape that is good from the front and smeared on its hidden sides takes the approved sheet's colours on every side. Cells are never added or removed. views is a list of {view, path | rows, crop, legend, flip, background, ...} as carve_from_views takes them (front, back, left or side, right, top, bottom; sheet-wide path, background, tolerance, and mask edits at the top level); over MCP, a top…
| Parameter | Type | Description |
|---|---|---|
accents | boolean | newSlots: keep small distinct colours their own slot. Defaults to true. |
alphaThreshold | number | Alpha below this is background, 1..255. Defaults to 128. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b], for every view. |
blend | string | nearest (default): the view the normal faces most, blended within seam of a boundary; soft: every view that sees the cell, by facing. |
contrast | number | Accent guard: Oklab distance from every cluster an accent needs. Defaults to 0.12. |
downscale | boolean | object | Pixelate every view first at the cell grid, as pixelate_views does (true, or its options {colors, coverage, thin, features, lines, outline, mergeLines, accents, minShare, contrast, maxAccents}), so a… |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
fit | string | What of each view maps onto the box: ink (default) its ink bounds, crop the whole crop. |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
inset | integer | Pixels: colours are read this far inside each silhouette's edge, so anti-aliased background fringes never land on the model, 0..16. Defaults to 2 (0 when every view is rows). |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash, for every view without its own. |
maxAccents | integer | Accent guard: most accents kept beyond newSlots, 0..16. Defaults to 4. |
minShare | number | Accent guard: share of the painted cells an accent needs, 0..1. Defaults to 0.002. |
mirror | boolean | Make a missing right view from the left one mirrored, and the other way. Defaults to true. |
newSlots | integer | Instead of slots: up to this many new colours (1..64) clustered from the painted ones, in free slots. |
objects | array | Objects to paint together, by name or index. Defaults to the active object. |
only | array | Palette indices that may be repainted. Omit for all. |
path | string | The sheet PNG every view reads unless it has its own path. |
reach | number | Cells: a footprint off a view's ink takes the nearest ink within this, 0..64. Defaults to 3. |
seam | number | nearest: degrees around the boundary between the two best views where they blend, 0..45. Defaults to 12. |
sharpness | number | soft: the power of the facing weight, 0..64. Defaults to 4. |
slots | array | Palette indices colours quantise to. Defaults to the slots the painted objects use. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
tolerance | number | RGB distance from the key colour that is still background, 0..442. Defaults to 40. |
views | array | 1..6 views: {view, path | rows, crop?, legend?, flip?, background?, tolerance?, alphaThreshold?, mask edits}. Leave out with a top-level path to use the sheet's measure_sheet layout. |
x0 | integer | Box corner of the painted cells (all six or none). |
x1 | integer | Opposite box corner. |
y0 | integer | Box corner. |
y1 | integer | Opposite box corner. |
z0 | integer | Box corner. |
z1 | integer | Opposite box corner. |
shell_plates
Paint a turtle-shell-like plate pattern over a dome-shaped surface in one call, instead of drawing every seam with surface_stroke: a central plate, rings of plates (rings: plates per ring, from the centre out), an outer band of plates (band: its share of the radius, bandCount plates, 0 for one unbroken band), and a rim (rim: cells at the edge), each kind with its slots (palettes {central, ring, band, rim}: one slot or a list, each plate picking one by seed), split by seams seamWidth cells wide in the seam slot, or cut seamDepth cells deep with seam 0. It works on the surface, not a view: the c…
| Parameter | Type | Description |
|---|---|---|
palettes * | object | {ring: slot or [slots], seam: slot (0 cuts a groove), central?: defaults to ring, band?: defaults to ring, rim?: defaults to band}. |
band | number | Share of the radius the outer band spans, 0..0.6; 0 for none. Defaults to 0.15. |
bandCount | integer | Plates in the band, 0..64; 0 is one unbroken band. Defaults to twice the last ring's. |
center | array | Plan centre [x, y]. Defaults to the middle of the taken cells. |
central | number | Share of the radius the central plate spans, 0..0.9; 0 for none. Defaults to 0.22. |
depth | integer | Cells a plate's slot reaches in along the normal, 1..8. Defaults to 1. |
facing | number | Degrees from straight up a taken cell's normal may be, 0..180. Defaults to 80. |
jitter | number | How far boundaries and seeds move, 0..1. Defaults to 0.25. |
layout | string | rings (default): sectors per ring; voronoi: nearest seed. |
only | array | Only cells of these slots are taken. |
rim | number | Rim width in cells along the surface at the edge, 0..32. Defaults to 1. |
rings | array | integer | Plates per ring from the centre out, 1..64 each, at most 8 rings. Defaults to [6]. |
seamDepth | integer | Cells a seam reaches in (the groove's depth with seam 0), 1..8. Defaults to 1. |
seamWidth | number | Seam width in cells, 0.5..6. Defaults to 1. |
seed | integer | Seed of the jitter and of each plate's slot pick. Defaults to 1. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
symmetric | boolean | Mirror the layout across the plane through the centre along y. Defaults to true. |
x0 | integer | Box corner of the taken cells (all six or none). |
x1 | integer | Opposite box corner. |
y0 | integer | Box corner. |
y1 | integer | Opposite box corner. |
z0 | integer | Box corner. |
z1 | integer | Opposite box corner. |
zRange | array | Inclusive heights [z0, z1] of the taken cells. |
decal
Lay ONE picture (an eye, a mouth, a badge, a marking) onto the active object's curved surface around a point, so it keeps its size and shape on a round head instead of stretching on the slopes as project_paint's parallel projection does: the surface is unrolled around the point (a discrete exponential map, following the surface's normal and the distance along it), and each surface cell takes the picture's colour under it. Cells are never added or removed. The picture is a PNG path with a crop or rows with a legend, with the background rule of carve_from_views; background pixels leave the surfa…
| Parameter | Type | Description |
|---|---|---|
size * | number | array | Cells across along the surface, 1..256 (the height follows the picture), or [across, down]. |
alphaThreshold | number | Alpha below this is background, 1..255. Defaults to 128. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b]. |
coverage | number | Share of a grid cell's footprint that must be inked, 0..1. Defaults to 0.5. |
crop | array | [x, y, width, height] of the image in pixels. Defaults to the whole image. |
depth | integer | Cells painted into the solid along the normal, 1..16. Defaults to 1. |
flip | boolean | Mirror the picture left to right. |
legend | object | rows: {char: palette index or #rrggbb}. |
mirror | boolean | string | object | Do it on both sides of a plane in one call: true (x), an axis x, y, or z, or {axis?: x, at?: the plane's coordinate in local cells (world with space world), a multiple of 0.5; cell c spans c..c+1, so… |
normalLimit | number | Degrees, 1..180: the decal stops where the surface turns further than this from the point's normal. Defaults to 90. |
only | array | Palette indices that may be repainted; other cells keep their slot. Omit for all. |
palette | integer | One palette index for every inked pixel, instead of the picture's colours. |
path | string | The picture PNG. |
point | array | Local [x, y, z] near the surface; the decal centres on the nearest surface cell within reach. |
ray | object | {origin: [x, y, z], direction: [x, y, z]}: the decal centres on the first solid cell the ray meets. Instead of point. |
reach | number | How far point may be from the surface, 0..64 cells. Defaults to 8. |
rows | array | The picture as rows of characters instead of path; . and space are background. |
slots | array | Palette indices picture colours quantise to. Defaults to all of 1..255. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
tolerance | number | RGB distance from the key colour that is still background, 0..442. Defaults to 40. |
up | array | The picture's up direction. Defaults to [0, 0, 1]. |
orient_to_views
Turn the active object, such as an image-to-3D mesh fresh from import_mesh that came in lying on its side or facing anywhere, to the turn whose silhouettes best match a views sheet, and scale it, instead of guessing rotation and size by eye. views are 1 to 6 views, one per side, as fit_to_views takes them (path + crop + background rule, or rows + legend; flip mirrors; weight, default 1); a top-level path, background, tolerance, and alphaThreshold apply to every view without its own, and a top-level path with no views reads the sheet's 2 x 2 layout as measure_sheet does. Each candidate turn pro…
| Parameter | Type | Description |
|---|---|---|
alphaThreshold | number | Alpha below this is background, 1..255, for every view without its own. Defaults to 128. |
apply | boolean | Turn and scale the object (default true); false only reports the best turn. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b], for every view without its own. |
fineAxes | string | Axes of the fine steps: z (default, yaw about up), or xyz to also tilt about x and y, for a mesh tilted off its axes. |
height | number | Cells along up after the turn, 1..=256. Instead of size or scale. |
path | string | The sheet PNG for every view without its own path or rows. |
resolution | integer | Longest side of the projected model masks in pixels, 8..=512. Defaults to 64. |
scale | number | Scale factor, above 0 and at most 16. Defaults to 1, the turn alone. |
size | number | Cells along the longest axis after the turn, 1..=256. Instead of height or scale. |
tolerance | number | RGB distance from the key colour that is still background, 0..442, for every view without its own. Defaults to 40. |
turns | string | all (default): the 24 axis-aligned turns; upright: the 4 about up, for an object already standing on its base. |
views | array | 1 to 6 views: {view: front | back | left | side | right | top | bottom, path (a PNG) | rows + legend, crop [x, y, width, height], background, tolerance, alphaThreshold, flip, weight}. |
yawRange | number | Fine steps go this many degrees each way, 0..=180. Defaults to 45. |
yawStep | number | Degrees between fine yaw steps about up around the best turn, 0..=90. Defaults to 0, none. |
fit_to_views
Refine the active object so its orthographic views match an approved views sheet, with colours from a palette: the finishing pass after a carve_from_views or import_mesh blockout (inspired by Voxify3D, CVPR 2026; a CPU discrete search, no neural network). views are 1 to 6 views, one per side, given as carve_from_views takes them (path + crop + background rule, or rows + legend; flip mirrors); a top-level path, background, tolerance, and alphaThreshold apply to every view without its own. Rays are orthographic and parallel: one view pixel is one column of cells. Each crop is placed once over th…
| Parameter | Type | Description |
|---|---|---|
views * | array | 1 to 6 views, one per side: {view: front | back | left | side | right | top | bottom, path (a PNG) | rows + legend, crop [x, y, width, height], background (auto, alpha, #rrggbb, [r, g, b]), tolerance,… |
align | string | object | fit (default), height, width, or {scale, offset}: crop pixel p lands on cell column p * scale + offset. A view's own align overrides it. |
alphaThreshold | number | Alpha below this is background, 1..255, for every view without its own. Defaults to 128. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b], for every view without its own. |
colorWeight | number | Cost of a colour 255 RGB apart, 0..100. Defaults to 1. |
coverage | number | Share of a cell column's footprint that must be inked, 0..1. Defaults to 0.5. |
depthPath | string | A grey depth sheet (white near) laid out as the colour sheet: every view without depth false takes its depth target from it at the view's crop. |
depthTolerance | number | Cells in front of a depth surface that still count as on it, 0..64. Defaults to 0. |
depthWeight | number | Cost of a first cell 8 or more cells from the reference's or the depth map's, 0..100. Defaults to 0.5. |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
isolate | boolean | Fit the active object alone; by default other visible objects cover and hide but never change. |
iterations | integer | Most shape sweeps, 0..64; 0 only recolours. Defaults to 8. |
keep | array | Palette indices whose cells are never removed or recoloured (hand-set eyes); they still cover and hide. |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash, for every view without its own. |
margin | integer | Empty cells around the bounds the fit may fill, 0..64. Defaults to 15% of the largest extent, at least 4. |
maskWeight | number | Cost of a missing or excess view pixel, 0..100. Defaults to 1. |
normalLimit | number | Degrees, 0..90: a view recolours only cells whose surface faces it within this angle (a seen cell no view faces takes the view facing it most), so a feature does not wrap round a corner. Defaults to 6… |
path | string | The sheet PNG for every view without its own path or rows. |
recolor | boolean | Recolour the cells the views see. Defaults to true. Off for a part with a hand-set face, so only its shape is fitted. |
reference | integer | string | Another object (index or name) whose front surface is the depth target, such as a mesh imported with import_mesh newObject. Omit for none. |
roundAxes | string | Axes whose cross-sections the rounding prior rounds, letters of xyz. Defaults to yz: front sections and the plan; an x section runs along a creature facing -Y, through its neck. |
roundWeight | number | Cost of keeping a cell outside the rounding prior, 0..100; 0 keeps the maximal hull. Each cross-section along each axis gets the superellipse inscribed in its bounds (with a reference: the reference i… |
roundness | number | Superellipse exponent of the rounding prior, 1..16: 2 is an ellipse, larger is squarer. Defaults to 2.5. |
seed | integer | Shuffles the order rays are visited in. Defaults to 1. |
shape | boolean | Add and remove cells. Defaults to true. |
sharedScale | boolean | Views placed with fit share one scale (the median), offsets refitted at it, as a sheet is drawn at one scale. Defaults to true. |
slots | array | Palette indices the colours may take. Defaults to the slots the object holds. |
smoothWeight | number | Cost of each exposed cell face, 0..100; keeps lone spikes and pits out. Defaults to 0.1. |
tolerance | number | RGB distance from the key colour that is still background, 0..442, for every view without its own. Defaults to 40. |
optimize_to_views
Iterate a small creature (20 to 60 cells long) until its orthographic views match its pixel-art views, in the spirit of Voxify3D (CVPR 2026; an independent CPU solver, no neural network): the finishing pass after a carve_from_views, import_mesh, or hand-sculpted blockout, where one pass of paint_from_views gives streaky colours and lost eyes. The views are stretched over the active object's box, so a view pixel is exactly one column of cells: pass the rows and legend of pixelate_views (at the object's box) as views, or crops of a sheet (path + crop + background, or path alone for measure_sheet…
| Parameter | Type | Description |
|---|---|---|
accentShare | number | Share of the views' coloured pixels under which a colour is an accent, 0..0.5. Defaults to 0.04. |
accents | boolean | The accent guard (default true): small distinct colours keep their cells. |
alphaThreshold | number | Alpha below this is background, 1..255, for every view without its own. Defaults to 128. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b], for every view without its own. |
band | integer | Cells from the starting surface that may be added (outside) or removed (inside), 0..8. Defaults to 2. |
colorCarve | boolean | Remove an edge cell two views see first and paint differently when every ray that sees it still meets the body and more of them then agree. Defaults to true (with shape and recolor). |
connected | boolean | No removal splits the object into more parts. Defaults to true. |
depthPath | string | A grey depth sheet (white near) laid out as the colour sheet: every view without depth false takes its depth target from it at the view's crop. |
depthTolerance | number | Cells off a depth surface that still count as on it, 0..16. Defaults to 0.5. |
depthWeight | number | Cost of a front 4 or more cells off the depth map's surface, 0..16. Defaults to 0.5. |
downscale | boolean | object | Pixelate the views at the object's box first, with pixelate_views' options (colors, accents, coverage, thin, features, lines, outline, mergeLines, despeckle). Defaults to true unless every view is row… |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
fit | string | ink (default): each view's ink bounds map onto the box; crop: the whole rows grid. A downscaled view is always its grid. |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
iterations | integer | Most shape passes, 0..64; 0 only recolours. Defaults to 8. |
keep | array | Palette indices whose cells are never removed or recoloured (hand-set eyes). |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash, for every view without its own. |
minFeature | integer | No removal leaves a cell thinner than this many cells (its shortest solid run along x, y, or z) unless it already was, 1..16. Defaults to 1 (off); 2 keeps legs and fins at least two cells. |
mirror | boolean | A missing right view is the left one mirrored, and the other way. Defaults to true. |
path | string | The sheet PNG for every view without its own path or rows. |
recolor | boolean | Recolour the surface. Defaults to true. |
semantic | boolean | object | The CLIP semantic term (a froxel built with the clip or clip-metal feature, and the CLIP ViT-B/32 weights, about 605 MB, at models/clip-vit-base-patch32.safetensors in Froxel's support folder or FROXE… |
shape | boolean | Add and remove cells. Defaults to true. |
sharpness | number | Exponent of a view's facing weight, 0..16. Defaults to 2. |
slots | array | Palette indices the views' colours land in (nearest in Oklab). Defaults to a slot per view colour: an existing slot of exactly that colour, or a new one. |
smooth | number | Weight of the smoothness term against the views' vote, 0..4: higher merges colour patches more. Defaults to 0.6. |
surfaceWeight | number | Cost of each exposed cell face, 0..4; keeps lone spikes out. Defaults to 0.05. |
tolerance | number | RGB distance from the key colour that is still background, 0..442, for every view without its own. Defaults to 40. |
views | array | 1 to 6 views, one per side: {view: front | back | left | side | right | top | bottom, rows + legend (pixelate_views' reply) | path + crop + background rule, flip, color (false: shape only), depth (as… |
pixelate_views
Turn an orthographic views sheet into pixel art at the cell grid a small creature (20 to 60 cells long) will be carved or painted at, before carve_from_views or paint_from_views read it, so its eyes, pupils, teeth, nostrils, spots, and thin legs and fins keep cells instead of averaging away into smears; writes no voxels. Content-adaptive downscaling (after Kopf, Shamir and Peers 2013 and Gerstner et al. 2012): one small palette shared by every view, colors clusters (default 6) by median cut and k-means in Oklab with the accent guard of paint_from_views (accents, minShare, contrast, maxAccents)…
| Parameter | Type | Description |
|---|---|---|
accents | boolean | Keep small distinct colours (eyes) their own colour beyond colors. Defaults to true. |
alphaThreshold | number | Alpha below this is background, 1..255. Defaults to 128. |
background | string | array | auto (default), alpha, #rrggbb, or [r, g, b], for every view. |
colors | integer | Clusters of the shared palette, 1..32. Defaults to 6. |
contrast | number | Accent guard: Oklab distance from every cluster an accent needs. Defaults to 0.12. |
coverage | number | Share of a cell's footprint that must be inked, 0..1. Defaults to 0.5. |
despeckle | integer | Passes of a majority filter over each view's grid: a cell whose colour fewer than two of its eight inked neighbours share takes their commonest colour (feature cells are kept), 0..16; 0 turns it off.… |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own. |
features | boolean | object | Keep small salient features: true (default), false, or {minArea, maxArea (cells of area, defaults 0.15 and 6), contrast (Oklab, default 0.1), minCells (1..16, default 1)}. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash, for every view without its own. |
lines | boolean | object | Keep drawn lines thinner than a cell (an eye's ring, a mouth) as a line of cells in their colour: true (default), false, or {length (cells a stroke's midline must run through a cell, 0..4, default 0.6… |
maxAccents | integer | Accent guard: most accents beyond colors, 0..16. Defaults to 4. |
mergeLines | number | boolean | With lines, merge the colours that live mostly in strokes and lie within this Oklab distance of the commonest stroke colour into it, so an outline blended into a shadow is one colour, 0..1.5. Defaults… |
minShare | number | Accent guard: share of the ink an accent needs, 0..1. Defaults to 0.002. |
outline | boolean | With lines, keep the outline along the silhouette too, as a rim of cells in its colour. Defaults to false: the outline's pixels then vote only where nothing else does. |
path | string | The sheet PNG every view reads unless it has its own path. |
png | string | Write the pixelated views side by side to this PNG for checking. |
pngScale | integer | Pixels a cell in png, 1..64. Defaults to 8. |
size | array | Box [x, y, z] in cells, 1..512 each; at least one axis, null follows the views' proportions. |
thin | number | boolean | Least inked share for a cell on the midline of a part thinner than a cell (a fin, a leg), 0..1; false keeps only coverage. Defaults to 0.25. |
tolerance | number | RGB distance from the key colour that is still background, 0..442. Defaults to 40. |
views | array | 1..6 views: {view, path | rows, crop?, legend?, flip?, background?, tolerance?, alphaThreshold?, mask edits}. Leave out with a top-level path to use the sheet's measure_sheet layout. |
measure_sheet
Read a views sheet image before carving or fitting it, instead of measuring it with scripts; writes no file and changes nothing. The inked pixels (under the background rule and the mask edits of compare_silhouette) split into connected regions; regions whose boxes come within gap pixels merge, and regions under minShare of the largest are left out (listed in ignored). Each view's crop is its tight box [x, y, width, height], in image pixels. Four views in two rows and two columns take the layout names in reading order (front, side, top, back by default), and fitViews is then the views list carv…
| Parameter | Type | Description |
|---|---|---|
path * | string | The views sheet PNG. |
alphaThreshold | number | Alpha below this is background, 1..255. Defaults to 128. |
background | string | array | auto (default: transparent pixels, else the commonest border colour), alpha, #rrggbb, or [r, g, b]. |
checkTolerance | number | Largest difference, in percent, a check passes with. Defaults to 3. |
crop | array | [x, y, width, height]: read only this part of the image. Crops in the reply stay in image pixels. |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
gap | number | Pixels between two regions' boxes that still merge them into one view. Defaults to 12. |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash, for every view without its own. |
layout | array | View names of a 2 x 2 sheet in reading order. Defaults to [front, side, top, back]. |
minShare | number | A region under this share of the largest one's pixels is left out (labels, specks). Defaults to 0.02. |
parts | boolean | object | Count the parts sticking out of a view's body: true (the top view) or {view (a layout name or an index), radius (opening radius in pixels), minShare (smallest part's share of the view, default 0.004)}… |
pitchRange | array | [low, high] cube pitch searched, in pixels. Defaults to [4, 96]. |
tolerance | number | RGB distance from the key colour that is still background, 0..442. Defaults to 40. |
compare_silhouette
Measure how closely the model reads like its concept from one camera, as numbers and a picture: draws the preview silhouette (the camera of preview: preset game, presets, placementYaw, view, yaw, pitch, orthographic, fov, margin, object, isolate, pose) and compares it with a mask cut from a concept PNG (crop and background rule as in carve_from_views). The concept is placed over the preview with one uniform scale and an offset, so its proportions are kept: align fit (default) finds the placement with the most overlap, height or width match that extent with bottoms and centres lined up, and {sc…
| Parameter | Type | Description |
|---|---|---|
concept * | string | Concept PNG path |
path * | string | Overlay PNG to write. Its folder is created. |
align | string | object | fit (default), height, width, or {scale, offset: [x, y]}. |
alphaThreshold | number | Alpha below which a pixel is background, 1..255. Defaults to 128. |
antialias | boolean | Defaults to true. |
background | string | array | The concept's background: auto (default), alpha, #rrggbb, or [r, g, b]. |
crop | array | [x, y, width, height] of the concept view in pixels. Defaults to the whole image. |
erase | array | Rectangles [x, y, width, height] in image pixels (as crop is) whose pixels go: a rider, a label. |
excludeColors | array | Colours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes. |
excludeTolerance | number | RGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40. |
fillHoles | boolean | number | Ink again, in the image's own colour, every background region the ink encloses (not reaching the crop's border) that holds at most this share of the view's inked pixels: white eyes and teeth on a whit… |
flip | boolean | Mirror the concept left to right. |
flood | boolean | number | object | Flood fill from every pixel of the crop's border, stepping to a neighbour within this RGB distance of the pixel it comes from, and drop what it reaches: a photo-like or gradient background. true is 24… |
fov | number | Perspective field of view in degrees. Defaults to 50. |
height | integer | 16..4096 |
isolate | boolean | Draw only object. |
keepLargest | boolean | Keep only the largest connected inked region, dropping specks and a separate splash. |
lighting | string | object | A game's light instead of the viewport's: a preset name (viewport, the default; old_pond, frog-world's Old Pond region; or one from lightingPresets or the user's lighting_presets.json), or an object o… |
lightingPresets | object | string | Lighting presets for this call: name to lighting fields, or the path of a JSON file of them (also under lighting). A built-in name is overridden field by field; a relative lut path is relative to the… |
margin | number | Empty border on each side, 0..0.45. Defaults to 0.06. |
mask | string | object | A mask image: a PNG path or {path, crop, background, tolerance, alphaThreshold, invert}. It is cut as a view is (auto background: transparent pixels, else the border colour, so white on black works),… |
object | integer | string | Frame this object (index or name). |
orthographic | boolean | Orthographic, as a turnaround sheet is drawn. |
pitch | number | Degrees, -90..90. |
placementYaw | number | Degrees: the asset's turn about up where it is placed in a level, positive counter-clockwise from above, the same number as a Godot node's rotation_degrees.y. The camera (and a lighting sun) turn the… |
pose | object | Bone name to quaternion, as in preview. |
preset | string | Camera preset: game (orthographic, yaw -135, pitch 32: frog-world's gameplay camera, unless presets or the user's camera_presets.json redefines it), default, or one from presets. |
presets | object | string | A project's camera presets: an object of name to {yaw, pitch, orthographic, fov, margin}, or the path of a JSON file of them (or with them under presets). godotLook [x, y, z], a Godot camera's look di… |
tolerance | number | RGB distance of a key colour, 0..442. Defaults to 40. |
view | string | Named view of a model facing -Y with +Z up, instead of yaw and pitch. front is yaw -90, back 90, left 0, right 180 (the model's own sides), top pitch 90, bottom pitch -90. |
width | integer | 16..4096 |
yaw | number | Degrees. 0 puts the camera on +X looking toward -X. |
set_marker
Name a point, a collision box, or a connector (a piece's joining end) on an object, for a game to read: a ledge top, a spawn, a collision volume, where two pieces join. It is saved in the .vox, listed in the export_mesh and export_models replies, and exported as a glTF node named after the marker with extras.froxel (kind, plus size, min, and max for a box and direction for a connector, whose node rotation turns -Z toward it) and in the scene's extras.froxelMarkers. Coordinates are the object's local mesh units: cell (x, y, z) spans x..x+1, so the top centre of cell (4, 4, 10) is [4.5, 4.5, 11]…
| Parameter | Type | Description |
|---|---|---|
name * | string | Marker name, 1 to 64 characters, such as ledge_top_4m. The glTF node takes it. |
direction | array | connector: the way the joining end faces, [x, y, z], normalised |
kind | string | point (default), box (collision), or connector |
object | integer | string | Object index or name it belongs to. Defaults to the active object. |
point | array | point and connector: [x, y, z] in local mesh units |
x0 | integer | box: inclusive cell corner; the box spans x0..x1+1 |
x1 | integer | box: inclusive cell corner |
y0 | integer | box: inclusive cell corner |
y1 | integer | box: inclusive cell corner |
z0 | integer | box: inclusive cell corner |
z1 | integer | box: inclusive cell corner |
remove_marker
Remove the marker called name, or every marker with all: true. One undo step. Replies with removed.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Remove every marker |
name | string | Marker name |
collision_from_voxels
Build collision box markers from an object's solid cells, for a game to read, instead of writing boxes by hand: a walkable deck, a hollow hold, and open holes, which one convex hull cannot give. Boxes are named <prefix>_1, <prefix>_2, ... and are ordinary box markers: the .vox saves them, export writes them as glTF nodes, list_markers lists them, and preview with overlay: "boxes" draws them. A rerun with the same prefix replaces that prefix's boxes on the object, so run it again whenever the shape changes. Hollows stay open: no box ever holds an empty block holeSize wide on each axis (clipped…
| Parameter | Type | Description |
|---|---|---|
exclude | array | Palette indices to leave out, such as moss, vines, and rope. These are slots, not the boxes the stone tools take under this name. |
holeSize | integer | The tolerance: the smallest empty block that stays open. Default 3. Larger means fewer boxes and more empty volume filled; 1 fills nothing, an exact cover. |
layer | integer | Horizontal cuts between boxes lie on planes this many cells apart, from the lowest cell, unless only another height opens a hollow. Default 1, any height. Not with zBands. |
maxBoxes | integer | Most boxes. With boxes to spare the emptiest boxes split further; with too many, neighbours merge, cheapest added empty volume first, as far as holeSize allows, and then the boxes with the least solid… |
minFeature | integer | Ignore details thin on two axes, such as vines and rope: a cell is covered only if it lies in a full square this wide in an axis plane. A deck or a wall thin on one axis stays; a one-cell diagonal doe… |
object | integer | string | Object index or name. Defaults to the active object. |
only | array | Cover only cells of these palette indices. Omit for every slot. |
prefix | string | Marker names are <prefix>_<number>. Default <object name>_collider. An existing marker with one of those names that this tool would not replace is an error. |
zBands | array | Horizontal cuts by hand: ascending z planes in local mesh units, at least two, such as [0, 3, 8, 12]. Put one on each deck and walking level. Not with layer. |
list_markers
Markers with their kind, object, and local, world, and glTF (Y-up) coordinates: a point, a box's min, max, centre, and size, a connector's point, direction, and node rotation.
import_mesh
Voxelize a .glb, .gltf, or .obj mesh (with its .mtl and textures) into the active object, or a new object with newObject, to bring a form sculpted in Blender or made by an image-to-3D tool into the voxel workflow. Every triangle primitive of the default glTF scene is read under its node transforms; embedded and external buffers and PNG, JPEG, and WebP textures (EXT_texture_webp, as image-to-3D tools write) are read; KTX2/Basis textures are skipped with a warning; Draco and meshopt compression are refused. The file's Y-up becomes Z-up (upAxis z keeps it). Size by size (cells along the longest a…
| Parameter | Type | Description |
|---|---|---|
path * | string | Path of the .glb, .gltf, or .obj |
anchor | string | Point of the mesh's box placed at position: min (default) the low corner, center, or bottom (the centre of the bottom face). |
clean | boolean | object | Run reduce_palette over the imported cells before they are written, in the same undo step: true is {colors: 8, despeckle: 1}, or its options (colors | palette, accents, minShare, contrast, maxAccents,… |
colors | string | auto (default): base-colour texture times factor times vertex colours; vertex: vertex colours only. |
coverage | number | Keep a cell when this share of it (0..1, such as 0.5) is solid, measured on a voxelization 2 to 4 times finer, instead of every cell the surface touches: the form stays as tight as the mesh, so a smal… |
fill | string | solid (default) fills all a flood from the box border cannot reach, sealing an open mesh's openings at their rims; parity is the older ray-parity vote; shell writes only cells the surface touches. |
keepThin | boolean | With coverage: a part thinner than a cell (a fin, an ear, a leg) keeps the one cell its midline crosses instead of vanishing under the coverage. Defaults to true. |
maxNewSlots | integer | Most palette slots written with new colours, 0..=255. Defaults to 32; 0 maps to the nearest existing slots. |
minFeature | integer | Report the imported parts thinner than this many cells, 2..16 (thin in the reply). |
mode | string | replace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells. |
name | string | Name of the new object (with newObject). Omit for Object N. |
newObject | boolean | Create a new object for the mesh and make it active. Defaults to false. |
orient | object | string | Turn the mesh before voxelizing it. "upright" stands a tilted image-to-3D mesh level from its shape alone: up is the thinnest principal axis of its vertices, signed so the form narrows upward, at most… |
palette | integer | Paint every cell this palette index instead of sampling colours. |
position | array | Where the anchor lands, in the active object's local cells (a cell corner). With newObject, the new object's world position, and the anchor is its local origin. Defaults to [0, 0, 0]. |
rotation | array | Degrees about x, then y, then z (cell axes), after the up axis. Defaults to [0, 0, 0]. |
scale | number | Cells per file unit (per metre for a glTF). Instead of size. |
size | number | Cells along the longest axis, 1..=256. Defaults to 64 when neither scale nor voxelSize is given. |
slots | array | Map colours only to these palette indices (the nearest of them); the palette is unchanged. |
tolerance | number | sRGB distance (0..=442) under which an existing slot is reused. Defaults to 12. |
upAxis | string | The file's up axis. y (default, glTF and most OBJ) turns it to Z-up; z keeps the axes. |
voxelSize | number | Metres per cell, such as 0.08: the mesh keeps its real size. Instead of size. |
mirror_object
Copy an object mirrored across a world axis through the origin. Cells use -coord-1 on that axis. One undo step. mirrorBones also copies the bound bone and its descendants, swapping an _l/_r suffix. The copy is unbound unless mirrorBones is true.
| Parameter | Type | Description |
|---|---|---|
axis * | string | x, y, or z |
index * | integer | Object index to copy |
name * | string | Name of the copy |
mirrorBones | boolean | Copy the bound bone subtree and swap _l/_r. Default false. |
position | array | World cell of the copy's local (0, 0, 0). Omit to use the minimum corner of the mirrored cells. |
clear_object
Empty an object of all its cells at once, whatever its size: fill_box with palette 0 stops at 2000000 cells, this has no limit. index is the object (an index or a name), the active one when omitted. Its name, position, bone, script, and markers stay; remove_object deletes it instead. One undo step; an empty object adds none. Replies with index, name, removed, and voxels.
| Parameter | Type | Description |
|---|---|---|
index | integer | string | Object index or name. Defaults to the active object. |
split_object
Move (or copy) the cells of an object inside one or more boxes, or of some palette slots, or both, into a new or an existing object, keeping each cell's world position: cut one carve_from_views blockout of a creature into its rig parts (head, flippers, tail) instead of one carve per part plus complement erases. A new object takes the source's position, so its local cells are the source's; an existing target (into) takes them at its own offset, replacing what it holds there. invert takes every cell the boxes and slots do not select. One undo step. Replies with target, name, created, cells (take…
| Parameter | Type | Description |
|---|---|---|
boxes | array | One inclusive box [x0, y0, z0, x1, y1, z1] in the source's local cells, or a list of up to 64. A cell inside any of them is selected. Omit to select by slots alone. |
copy | boolean | Leave the cells in the source too. Default false (move). |
index | integer | string | Source object index or name. Defaults to the active object. |
into | integer | string | Existing target object, by index or name. Omit to create a new object. |
invert | boolean | Take every cell the boxes and slots do not select. Default false. |
makeActive | boolean | Make the target the active object. Default false. |
name | string | Name of the new object. Defaults to the source's name with _part. |
slots | integer | array | Only cells of these palette slots (the mask). Omit for every slot. |
space | string | local (default): coordinates are the active object's local cells. world: they are world cells and the object's position is subtracted first, so the same box hits the same place whatever object it land… |
add_bone
Add a bone. One undo step. parent is omitted for a root. pivot is a fractional world coordinate, so a joint can sit between cells.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique bone name |
pivot * | array | World pivot [x, y, z]. Fractional values sit between cells. |
parent | string | null | Parent bone name. Omit or null for a root. |
rest | array | Rest turn [x, y, z, w], local, on top of rotation: the angle the bone's parts are drawn, edited, saved, and exported at, while their cells stay flat on their own grid. Defaults to identity. |
rotation | array | Quaternion [x, y, z, w] in voxel space. Defaults to identity. |
set_bone
Change a bone's parent, pivot, rotation, rest turn, or name. rest (or restFromPose, from the preview pose) is the saved angle the bone's parts are drawn, edited, and exported at: model a fin or a seat flat as its own object, bind it to a bone pivoted where it meets the body, and turn it there; the cells stay on the part's own grid and the glTF joint node rests at that turn. One undo step. Omit a field to leave it. parent null makes a root. joint true puts the pivot where the bone's part meets its parent's part instead of a given pivot, as place_joints does for one bone (with the new parent whe…
| Parameter | Type | Description |
|---|---|---|
name * | string | Bone to edit |
band | number | With joint, parts apart: cells past the closest gap that still count. Default 0.5. |
joint | boolean | Measure the pivot at the joint with the parent's part (see place_joints). Not with pivot. |
parent | string | null | Parent bone. null makes a root. Omit to leave the parent. |
pivot | array | World pivot [x, y, z] |
rename | string | New unique name |
rest | array | Rest turn [x, y, z, w], local, on top of rotation: the saved angle the bone's parts sit at (a fin sculpted flat, turned onto the body). Identity clears it. |
restFromPose | boolean | Keep the bone's preview turn (set_pose) as its rest turn and drop the turn from the pose, so the part stays where it is drawn. Not with rest. |
rotation | array | Quaternion [x, y, z, w] |
snap | string | With joint: round the pivot to cell corners, cell centres, or half cells. Default none. |
place_joints
Put bone pivots at the joints between rig parts, after split_object and bind_object, instead of placing them by eye. A bone's part is the cells of the objects bound to it; its parent part is the cells bound to the nearest ancestor bone that has any. The pivot is the centroid of the cells both parts hold (method overlap), else of the faces where the parts touch (contact), else of the midpoints between the child's surface cells and the parent's nearest surface cells within band cells of the closest gap (nearest; gap is the empty cells between them). snap rounds it to cell corners, cell centres,…
| Parameter | Type | Description |
|---|---|---|
band | number | Parts apart: cells past the closest gap that still count toward the pivot. Default 0.5. |
bones | array | Bone names. Default every bone. |
snap | string | Round the pivots: none (default), corner (integer), center (n + 0.5), or half. |
remove_bone
Delete a bone. Objects bound to it become unbound. Children keep its parent. One undo step.
| Parameter | Type | Description |
|---|---|---|
name * | string | Bone to delete |
bind_object
Bind an object to one bone, or unbind it. One undo step. An unbound object follows the skeleton root at export.
| Parameter | Type | Description |
|---|---|---|
bone * | string | null | Bone name. null unbinds. |
index * | integer | Object index from inspect_document |
list_bones
Bones with parent, pivot, rotation, rest (the saved turn their parts sit at), and the object indices bound to each. Pivots are fractional world coordinates.
set_pose
Preview a pose in the window. Each quaternion is local and multiplied on the right of the bind rotation and the bone's rest turn, so a parent orbits its children. Omitted bones stay at rest. Identity is a no-op. Does not change the bind pose. The window draws a posed part turned and its tools edit it where it is drawn, on its own grid; local cell coordinates in the tools do not change. One undo step.
| Parameter | Type | Description |
|---|---|---|
pose * | object | Map of bone name to a quaternion [x, y, z, w] or {rotation, scale}; scale is local per axis, 0 to 16, and children inherit it. Replaces the preview. |
clear_pose
Remove the preview pose. The bind pose stays. One undo step.
add_clip
Add an empty named clip. Keys are local TRS in voxel space: translation is the full offset from the parent, not a delta. One undo step. Saved in the .vox MVAN chunk and written to glTF as an animation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique clip name |
set_clip_keys
Replace one bone's keys in a clip. Times must be finite, >= 0, and increasing. rotation defaults to identity, translation to [0, 0, 0], scale to [1, 1, 1]. One undo step.
| Parameter | Type | Description |
|---|---|---|
bone * | string | Bone name |
keys * | array | Keyframes. time is required. rotation is [x, y, z, w]. translation and scale are [x, y, z]. |
name * | string | Clip name |
list_clips
Named clips and their bone keys.
remove_clip
Remove a clip. One undo step.
| Parameter | Type | Description |
|---|---|---|
name * | string | Clip name |
undo
Undo the last edit.
redo
Redo the last undone edit.
render
Path-trace the whole scene to a PNG. Blocks until the file is written. The camera orbits at yaw and pitch and fits the framed box (every visible posed cell, or target) inside the frame with margin on each side, at every angle of the call; zoom and distance scale that fit. Give only width or only height and the other side follows the model, so a long model gets a wide frame. Replies framed (the world box) and distance.
| Parameter | Type | Description |
|---|---|---|
path * | string | PNG file to write. Its folder is created. |
aces | boolean | ACES filmic tonemap. Default true. |
albedoPath | string | Also write the first-hit albedo of the main view as a PNG here. |
aperture | number | Lens aperture. Omit to keep the document setting. |
atmospheric | boolean | Nishita sky. Omit to keep the document setting. |
bounces | integer | Max bounces, 0..8. Default 4. |
denoise | boolean | Edge-aware filter before writing. Default true. Build with --features oidn for Open Image Denoise. |
distance | number | Multiple of the fitted distance, greater than 0 and at most 100. Below 1 is closer. Default 1. |
focus | number | Focus distance. Omit to keep the document setting. |
glass-mode | string | Older name of glassMode; still accepted. |
glassMode | string | probabilistic or absorption. Omit to keep the document setting. |
gpu | boolean | Trace on the GPU (wgpu) instead of the CPU; an error when no adapter is available. Default false. |
height | integer | Pixels, 1..4096. Default 256, or from width and the model's shape. |
margin | number | Empty border on each side of the fitted box as a fraction of the frame, 0..0.45. Default 0.05. |
normalPath | string | Also write the first-hit normal of the main view as a PNG here. |
orthographic | boolean | Parallel rays, fitted to the box like perspective. Default false. |
pitch | number | Orbit pitch in degrees, -90..90. 90 looks straight down. Omit to keep the framing angle (25). |
pose | object | Temporary preview pose for this still. Bone name to a quaternion [x, y, z, w] or {rotation, scale}, on top of the bind pose. A zero scale hides that bone's parts. The document pose is restored afterwa… |
samples | integer | Path-trace samples, 1..8192. Default 16. The CPU tracer takes about a second per 16 samples at 256 x 256; gpu is far faster. |
seed | integer | Sampling seed. Default 1. |
showBones | boolean | Draw joint points and parent links on the PNG. Default false. |
sky-intensity | number | Older name of skyIntensity; still accepted. |
skyIntensity | number | Sky intensity. Omit to keep the document setting. |
stochasticGi | boolean | Stochastic area lights for the indirect bounces. Omit to keep the document setting. |
sun-intensity | number | Older name of sunIntensity; still accepted. |
sunIntensity | number | Sun intensity. Omit to keep the document setting. |
target | What the camera fits: all (default, every visible posed cell), active (the active object), an object index, or {min, max}, an inclusive box of world cells. Other objects are still drawn. | |
view | string | Named view of a model facing -Y with +Z up, instead of yaw and pitch. front is yaw -90, back 90, left 0, right 180 (the model's own sides), top pitch 90, bottom pitch -90. |
views | array | Extra PNGs. The required path is still written with the top-level yaw and pitch. Each item is {yaw, pitch, path} or {view, path}. |
width | integer | Pixels, 1..4096, at most 4096 x 2048 in all. Default 256, or from height and the model's shape. |
yaw | number | Orbit yaw in degrees. 0 puts the camera on +X, looking toward -X. A model facing -Y is face-on at yaw -90. Omit to keep the framing angle (30). |
zoom | number | Magnification of the fitted frame, 0.01..100. 2 is twice as large (crops the box), 0.5 half. Default 1. |
model_view
Flat model view to a PNG, like the editor's model view without shading: each pixel is the palette colour of the first visible cell under its centre, with no light, no tonemap, and no denoise, so it compares directly with a turnaround sheet. No path tracer. The camera fits the framed box like render; every view of the call shares one centre and one scale. Orthographic replies pixelsPerVoxel.
| Parameter | Type | Description |
|---|---|---|
path * | string | PNG file to write. Its folder is created. |
background | string | array | #rrggbb, #rrggbbaa, or [r, g, b, a?] for pixels that hit no cell. Default transparent. |
distance | number | Multiple of the fitted distance, greater than 0 and at most 100. Below 1 is closer. Default 1. |
height | integer | Pixels, 1..4096. Default 512, or from width, pixelsPerVoxel, and the model's shape. |
margin | number | Empty border on each side of the fitted box as a fraction of the frame, 0..0.45. Default 0.05. |
orthographic | boolean | Parallel rays. Default true. |
pitch | number | Orbit pitch in degrees, -90..90. 90 looks straight down. Default 25. |
pixelsPerVoxel | number | Orthographic scale instead of the fit: pixels per voxel edge, 0.05..256. Omitted width and height then follow the framed box. Not with zoom or distance. |
pose | object | Temporary preview pose for this still. Bone name to a quaternion [x, y, z, w] or {rotation, scale}, on top of the bind pose. A zero scale hides that bone's parts. The document pose is restored afterwa… |
showBones | boolean | Draw joint points and parent links on the PNG. Default false. |
target | What the camera fits: all (default, every visible posed cell), active (the active object), an object index, or {min, max}, an inclusive box of world cells. Other objects are still drawn. | |
view | string | Named view of a model facing -Y with +Z up, instead of yaw and pitch. front is yaw -90, back 90, left 0, right 180 (the model's own sides), top pitch 90, bottom pitch -90. |
views | array | Extra PNGs with the same camera settings. Each item is {view, path} or {yaw, pitch, path}. |
width | integer | Pixels, 1..4096. Default 512, or from height, pixelsPerVoxel, and the model's shape. |
yaw | number | Orbit yaw in degrees. 0 puts the camera on +X, looking toward -X. A model facing -Y is face-on at yaw -90. Default 30. |
zoom | number | Magnification of the fitted frame, 0.01..100. 2 is twice as large (crops the box), 0.5 half. Default 1. |
preview
Fast lit preview to a PNG in well under a second: the editor viewport's mesh and light (sun plus ambient), rasterised on the CPU with no path tracer and no window. The camera orbits at yaw and pitch and fits the model, or one object, inside the image with a margin. Use it to check shape and framing often; use render for lighting and materials and model_view for palette-exact colours. lighting lights it as a game does instead (old_pond is frog-world's Old Pond: warm sun, blue ambient, its background), to judge colour under the game's light; lightingPresets adds a project's presets. preset names…
| Parameter | Type | Description |
|---|---|---|
path * | string | PNG file to write. Its folder is created. |
antialias | boolean | 2x2 supersampling up to 2048x2048 output pixels. Default true. |
background | string | array | #rrggbb, #rrggbbaa, or [r, g, b, a?]. Default the viewport grey #16181c; #00000000 is transparent. |
columns | integer | Contact sheet columns, 1..65. Default about square. |
countsLabel | boolean | Write previewTriangles (the unmerged mesh drawn) and the export counts in the image's bottom-left corner, and in each contact sheet tile. Default false. |
export | object | boolean | The export options the reply's export counts use, as export_mesh takes them: merge, colorAtlas, vertexColors, exportHidden, splitObjects, aoStrength, aoRadius, aoTarget, bake (all off when absent, lik… |
fov | number | Vertical field of view in degrees for perspective, 10..120. Default 50, like the viewport; lower flattens a long model. |
glb | string | Draw this written .glb instead of the document, as an unlit material does: nearest texel times COLOR_0, no light, so a baked export looks as it will unshaded in a game. Takes the camera, size, backgro… |
height | integer | Pixels, 1..4096. Default 1024; a contact sheet tile's, default 512. |
inputs | array | Contact sheet: .vox paths, or {path?, label?, params?} (no path is the open document; params are set_params values applied before the tile, so a scripted file is baked with them). At most 64. |
isolate | boolean | Draw only object. Default false. |
labels | boolean | Contact sheet: each tile's name and parameters under it. Default true. |
lighting | string | object | A game's light instead of the viewport's: a preset name (viewport, the default; old_pond, frog-world's Old Pond region; or one from lightingPresets or the user's lighting_presets.json), or an object o… |
lightingPresets | object | string | Lighting presets for this call: name to lighting fields, or the path of a JSON file of them (also under lighting). A built-in name is overridden field by field; a relative lut path is relative to the… |
margin | number | Empty border on each side as a fraction of the image, 0..0.45. Default 0.06. |
object | integer | string | Frame this object (index or name) instead of the whole model. Other visible objects are still drawn unless isolate is true. A hidden object named here is drawn. |
orthographic | boolean | Parallel projection fitted tightly to the silhouette; replies pixelsPerVoxel. Default false (the viewport's 50 degree perspective). |
overlay | boolean | string | array | Draw the markers (set_marker, Rhai marker, collision_box, connector) over the model: true or all, or boxes (collision boxes as outlines), points, connectors (an arrow toward their direction), markers,… |
overlayLabels | boolean | Each overlay marker's name beside it. Default true. |
pitch | number | Orbit pitch in degrees, -90..90. 90 looks straight down. Default 25. |
placementYaw | number | Degrees: the asset's turn about up where it is placed in a level, positive counter-clockwise from above, the same number as a Godot node's rotation_degrees.y. The camera (and a lighting sun) turn the… |
pose | object | Temporary preview pose for this still. Bone name to a quaternion [x, y, z, w] or {rotation, scale}, on top of the bind pose. The document pose is restored afterwards. |
preset | string | Named camera: game (orthographic, yaw -135, pitch 32: frog-world's gameplay camera, unless presets or the user's camera_presets.json redefines it), default (perspective, yaw 30, pitch 25), or one from… |
presets | object | string | A project's camera presets: an object of name to {yaw, pitch, orthographic, fov, margin}, or the path of a JSON file of them (or with them under presets). godotLook [x, y, z], a Godot camera's look di… |
reference | string | object | Contact sheet: a PNG (a concept or turnaround) or {path, label?}, scaled to fit the first tile with its aspect kept. Alone, it sits beside the open document. |
variants | array | string | Contact sheet of the open scripted document: parameter sets [{name?, params}] as export_variants takes, or the path of a variants JSON file. Each is baked in a scratch run; the document is restored. |
view | string | Named view of a model facing -Y with +Z up, instead of yaw and pitch. front is yaw -90, back 90, left 0, right 180 (the model's own sides), top pitch 90, bottom pitch -90. |
width | integer | Pixels, 1..4096. Default 1024; a contact sheet tile's, default 512. |
yaw | number | Orbit yaw in degrees. 0 puts the camera on +X, looking toward -X. A model facing -Y is face-on at yaw -90. Default 30. |
reload
Restart this MCP server on the froxel binary now on disk, so tools added by a rebuild appear without the user restarting the server: the server re-executes itself in place (same process, same stdin and stdout), after asking the new binary whether it can resume (froxel mcp --reload-check; a broken or older build is refused and this server keeps running). The open document is kept: written to a temporary .vox and reopened, with its path, active object, and unsaved state (undo history and the preview pose are not kept); connected to an editor (--connect), the document stays in the window. After t…
| Parameter | Type | Description |
|---|---|---|
force | boolean | Reload even when the binary has not changed. Default false. |
set_view
Move the session camera. Connected to a window, that is the editor's camera, so the next screenshot_viewport shows an exact view. Not an edit and not undoable. The edit viewport stays lit; use model_view for palette-exact colours.
| Parameter | Type | Description |
|---|---|---|
bones | boolean | Draw the skeleton overlay in the viewport. false hides it for a screenshot. Omit to keep it. |
distance | number | Multiple of the framing distance, greater than 0 and at most 100. Needs frame. Default 1. |
frame | boolean | Centre on every object at the framing distance first. Default true. |
orthographic | boolean | Parallel projection in the edit viewport and the CPU trace. Omit to keep it. |
pitch | number | Orbit pitch in degrees, -90..90. 90 looks straight down. Omit to keep the current pitch. |
placementYaw | number | Degrees: the asset's turn about up where it is placed in a level, positive counter-clockwise from above, the same number as a Godot node's rotation_degrees.y. The camera (and a lighting sun) turn the… |
preset | string | Named camera: game (orthographic, yaw -135, pitch 32: frog-world's gameplay camera, unless presets or the user's camera_presets.json redefines it), default, or one from presets; yaw, pitch, view, and… |
presets | object | string | A project's camera presets: an object of name to {yaw, pitch, orthographic, fov, margin}, or the path of a JSON file of them (or with them under presets). godotLook [x, y, z], a Godot camera's look di… |
view | string | Named view of a model facing -Y with +Z up, instead of yaw and pitch. front is yaw -90, back 90, left 0, right 180 (the model's own sides), top pitch 90, bottom pitch -90. |
yaw | number | Orbit yaw in degrees. 0 puts the camera on +X, looking toward -X. Omit to keep the current yaw. |
screenshot
PNG of the whole editor window. Only when connected to a window.
| Parameter | Type | Description |
|---|---|---|
path | string | Optional file to write. Its folder is created. |
screenshot_viewport
PNG of the 3D viewport. Only when connected to a window.
| Parameter | Type | Description |
|---|---|---|
path | string | Optional file to write. Its folder is created. |
screenshot_region
PNG of a rectangle in window points, origin at the top-left of the client area. Only when connected to a window.
| Parameter | Type | Description |
|---|---|---|
height * | number | Height in window points |
width * | number | Width in window points |
x * | number | Left edge, window points |
y * | number | Top edge, window points |
path | string | Optional file to write. Its folder is created. |
ui_inspect
Controls from the previous frame: tool buttons, mode, outliner, sliders, palette cells, viewport chips, and the viewport rectangle, in window points. Only when connected to a window.
ui_click
Click the topmost registered control at a window point. A viewport hit stamps the active tool. A slider hit sets that slider from the point along its track. A palette cell selects that slot. Only when connected to a window.
| Parameter | Type | Description |
|---|---|---|
x * | number | X in window points, origin at the top-left of the client area |
y * | number | Y in window points, origin at the top-left of the client area |
set_script
Store a Rhai script on an object and read its parameters. One undo step. Voxels change only when regenerate runs. A failure keeps the source and reports the script line. Scripts have the sculpt tools as functions (fill_box with a mode, fill_ellipsoid, fill_rounded_box, fill_tube, blend_shapes, carve_box, carve_ellipsoid, carve_rounded_box, carve_tube, recolor, surface_stroke, shell_plates, smooth, break_end, scatter, joints, column_relief, weather, bark, cavity_tint, radial_relief, foliage, moss, algae, vines, sweep, trim_outline, loft, deform, brush, voxelize (import_mesh's voxelizer on an in…
| Parameter | Type | Description |
|---|---|---|
source * | string | Rhai source. Empty clears the script. |
object | integer | Object index. Omit for the active object. |
get_script
Script source, auto flag, and declared parameters.
| Parameter | Type | Description |
|---|---|---|
object | integer | Object index. Omit for the active object. |
set_params
Set script parameters by name. One undo step. Does not run the script.
| Parameter | Type | Description |
|---|---|---|
values * | object | Map of parameter name to a number, bool, [r, g, b] (whole 0..255, or 0..1 when every channel is at most 1 and one has a decimal point: [1, 1, 1] is near black, [1.0, 1.0, 1.0] white), a list of number… |
object | integer | Object index. Omit for the active object. |
list_params
Parameters from the last successful run of the object's script.
| Parameter | Type | Description |
|---|---|---|
object | integer | Object index. Omit for the active object. |
regenerate
Run the object's script and replace the voxels it writes. One undo step. There is no operation or voxel cap; the run stops at timeoutSeconds. A timeout or runtime error leaves the document unchanged and includes the script line.
| Parameter | Type | Description |
|---|---|---|
object | integer | Object index. Omit for the active object. |
timeoutSeconds | number | Stop the run after this many seconds. Default 300. 0 waits as long as it takes. |
export_mesh
Write a glTF 2.0 .glb of every object. Exposed faces only. The default material is a 256-wide palette texture. A swaying or bobbing slot adds TEXCOORD_1 (sway, bob) on every vertex. A skeleton writes one rigid skin: each vertex belongs to one bone with weight 1. The reply includes the file's node, mesh, skin and animation structure, quads, and triangles (every triangle in the glb), and the markers counted by kind ({"box": 22, "connector": 2}); reply: "full" lists each marker (local, world, glTF), as list_markers does.
| Parameter | Type | Description |
|---|---|---|
path * | string | Where to write the .glb. Its folder is created. |
aoRadius | integer | Reach of the occlusion in cells beyond the four that touch a corner, as a cosine-weighted hemisphere, so deep crevices and overhangs darken more. 0 or 1 is the corner term alone. Defaults to 3. |
aoStrength | number | Bake ambient occlusion into COLOR_0 so crevices, joints and the undersides of overhangs export darker, at no runtime cost. 0..1, how much light a fully occluded corner loses. Multiplied into vertexCol… |
aoTarget | string | Where aoStrength goes. vertex: a per-corner COLOR_0; faces whose corners shade differently are not merged, which costs triangles. texture: each cell's colour atlas texel is darkened by the mean of its… |
bake | object | boolean | Paint light into the colour atlas by real rays, one texel per cell face, to draw unshaded; needs colorAtlas. The glb material gets KHR_materials_unlit and extras.froxelBake. A texel is albedo x (ambie… |
colorAtlas | boolean | Merge coplanar faces whatever their palette slot and paint each cell into a per-mesh colour atlas texture (nearest filtering) instead of the palette, for far fewer triangles on noisy palettes. Faces o… |
exportHidden | boolean | Include hidden objects. Default false, which omits them. |
merge | boolean | Greedy-merge coplanar faces of one palette slot. Defaults to false. |
reply | string | compact (the default): the markers counted by kind, {"box": 22}. full: every marker with its local, world, and glTF place, as list_markers gives them. |
splitObjects | boolean | One mesh node per object, still sharing one skin, so a game can hide a part. Default false is a single mesh. |
vertexColors | boolean | Store a linear COLOR_0 on each vertex instead of the palette texture. Defaults to false. |
export_variants
Bake a scripted document once per parameter set and write <name>.vox and <name>.glb for each into dir, with the export_mesh mesh options, then a manifest JSON (default dir/variants.json) with each set's requested and resolved parameters, markers (local, world, glTF), bounds (voxel and glTF), quads, voxels, and mesh options. An existing manifest is updated by variant name: the sets exported now replace their entries in place, the other entries are kept in order, and new names are appended, so a subset can be redone; replace: true writes a fresh manifest with only these sets. The top-level optio…
| Parameter | Type | Description |
|---|---|---|
dir * | string | Folder for the .vox, .glb, and manifest files. It is created. |
variants * | array | string | 1 to 64 sets: {name?, params}, or the path of a JSON file of them. name is a file stem of letters, digits, _, -, . (default variant_1, ...); params maps parameter names to values, as set_params takes… |
aoRadius | integer | As export_mesh, 0..8. Defaults to 3. |
aoStrength | number | As export_mesh, 0..1. Defaults to 0, off. |
aoTarget | string | As export_mesh. Defaults to auto. |
bake | object | boolean | As export_mesh. Defaults to off. |
colorAtlas | boolean | As export_mesh. Defaults to false. |
exportHidden | boolean | As export_mesh. Defaults to false. |
manifest | string | Manifest path. Defaults to dir/variants.json. Its folder is created. |
merge | boolean | As export_mesh. Defaults to false. |
replace | boolean | Write a fresh manifest with only these sets instead of merging into the existing one by name. Defaults to false. |
reply | string | compact (the default): per set exported now its files, bounds, voxels, quads, and markers counted by kind. full: the whole manifest, every entry with its parameters and markers (local, world, glTF). T… |
splitObjects | boolean | As export_mesh. Defaults to false. |
timeoutSeconds | number | Script deadline per object and set, up to 3600. Defaults to 300. |
vertexColors | boolean | As export_mesh. Defaults to false. |
vox | boolean | Write a .vox per set too. Defaults to true. |
export_models
Write 1 to 16 .glb files and report each file's quads, triangles, and structure: nodes, meshes (vertices, indices, bounds), skins, and animations. A warning names an empty mesh, a skin with no joints, a nameless or duplicated node, or an animation with no channels. source opens that .vox in its own session, so the open document is not replaced. Omit source to export the open document. One model's failure is reported on that model and does not skip the others. Each model's markers are counted by kind; reply: "full" lists each one.
| Parameter | Type | Description |
|---|---|---|
models * | array | Each item is {path, source?, merge?, vertexColors?, exportHidden?, splitObjects?, colorAtlas?, aoStrength?, aoRadius?, aoTarget?, bake?}, with the export_mesh meanings. path ends in .glb. source, when… |
reply | string | compact (the default): the markers counted by kind, {"box": 22}. full: every marker with its local, world, and glTF place, as list_markers gives them. |
bake_scene
Bake one placement of many .vox assets together, so each is shaded by its neighbours and by ground, into one merged .glb with one colour atlas (colorAtlas faces, one texel per cell face, material KHR_materials_unlit, to draw unshaded). The open document is not touched. A placement is the frame of the glb export_mesh writes, as a game places it: world = translation + Lean x scale x Ry(yaw) x (x, z, -y) of a cell corner, Y up, so a level's translation, rotation.y in degrees, and uniform scale copy across. An optional lean {degrees, toward} tilts a placement by degrees (-90..90) about its base so…
| Parameter | Type | Description |
|---|---|---|
path * | string | .glb file to write. Its folder is created. |
scene * | object | string | The scene, or the path of a JSON file of it (relative paths inside start at that file's folder; for an object, at the server's working directory): {instances: [{source: a .vox path, translation?: [x,… |
bake | object | boolean | The export_mesh bake option, over the scene's own; distance is in scene units here. Defaults to occlusion alone. |