Froxel

v0.4.0
io.github.theromis/froxel Checked 4 days ago Published 9 days ago

Voxel 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…

ParameterTypeDescription
operations *arrayThe 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…

ParameterTypeDescription
path *stringPath of a .vox file
detailstringsummary (default) is the short reply; full is the inspect_document result.
fullPalettebooleanWith 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).

ParameterTypeDescription
pathstringWhere 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.

ParameterTypeDescription
fullPalettebooleanList 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.

ParameterTypeDescription
x *integerLocal x of the active object
y *integerLocal y
z *integerLocal z (up)
spacestringlocal (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.

ParameterTypeDescription
palette *integerPalette index. 0 erases. 1..255 paint.
x *integerLocal x of the active object
y *integerLocal y
z *integerLocal z (up)
spacestringlocal (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.

ParameterTypeDescription
cells *arrayEach item is {x,y,z,palette} or [x,y,z,palette], in the active object's local cells. Last duplicate wins.
mirrorboolean | string | objectDo 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…
spacestringlocal (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.

ParameterTypeDescription
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
mirrorboolean | string | objectDo 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…
modestringreplace (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…
paletteintegerPalette index. 0 erases. Required except with mode intersect.
spacestringlocal (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.

ParameterTypeDescription
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
spacestringlocal (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.

ParameterTypeDescription
aintegerAlpha 0..255. Defaults to 255, or the alpha of a #rrggbbaa color.
bintegerBlue 0..255
colorstring | 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.
entriesarrayBatch of {index, color | r,g,b, a?, motion?, motionAmount?}, such as {"index": 3, "color": "#5c6838"}. Omit when passing index.
gintegerGreen 0..255
indexintegerPalette slot 0..255
motionstringnone, sway, or bob. Omit to leave the slot's motion.
motionAmountnumberMotion strength, 0..4. Omit to leave it. Default 1 when a kind is first set.
motion_amountnumberOlder name of motionAmount; still accepted.
rintegerRed 0..255

set_active_object

Edit a different object from inspect_document. Later voxel tools use that object's local cells.

ParameterTypeDescription
index *integerObject 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.

ParameterTypeDescription
makeActivebooleanSelect the new object. Defaults to true.
make_activebooleanOlder name of makeActive; still accepted.
namestringObject name. Omit for Object N.
positionarrayWorld position [x, y, z] in voxel units. Defaults to [0, 0, 0].
sizearrayOptional 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.

ParameterTypeDescription
index *integerObject index
hiddenbooleanHide the object. Hidden objects stay in the file and outliner.
namestringNew name
positionarrayWorld 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.

ParameterTypeDescription
index *integerObject 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.

ParameterTypeDescription
x0 *integerInclusive minimum x
x1 *integerInclusive maximum x
y0 *integerInclusive minimum y
y1 *integerInclusive maximum y
z0 *integerInclusive minimum z
z1 *integerInclusive maximum z
mirrorboolean | string | objectDo 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…
modestringreplace (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…
paletteintegerPalette index. 0 erases. Required except with mode intersect.
spacestringlocal (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.

ParameterTypeDescription
radius *numberEdge bevel in voxels. 0 fills the box.
x0 *integerInclusive minimum x
x1 *integerInclusive maximum x
y0 *integerInclusive minimum y
y1 *integerInclusive maximum y
z0 *integerInclusive minimum z
z1 *integerInclusive maximum z
mirrorboolean | string | objectDo 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…
modestringreplace (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…
paletteintegerPalette index. 0 erases. Required except with mode intersect.
spacestringlocal (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…

ParameterTypeDescription
points *arrayEach 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.
aspectnumberFlatten: 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.
curvestringpolyline (default) or smooth.
mirrorboolean | string | objectDo 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…
modestringreplace (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…
paletteintegerPalette index. 0 erases. Pass this or palettes.
palettesarray1..=64 palette indices cycled by pattern. Repeat an index to weight it.
patternstringHow palettes are laid out. Defaults to rings.
periodnumberrings: band length along the tube in cells. Defaults to 2.
profilestringblade tapers the thickness across the width to one cell at one edge: a wedge, for splinters and broken plank ends. Defaults to round.
radiusnumberRadius for points that give none, 0.5..=128. 0.5 is one cell thick.
rollnumberDegrees to turn a flat or blade cross-section about the axis. 90 stands a level shard on its edge.
sectorsintegerstripes: sectors around the tube, 1..=256. Defaults to the number of palettes.
seedintegerrandom: seed. Defaults to 0.
spacestringlocal (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.

ParameterTypeDescription
fromintegerPalette slot to replace, 1..255. Pass from and to, or map.
mapobject | arraySeveral at once: {"3": 5, "4": 6} or [[3, 5], [4, 6]].
mirrorboolean | string | objectDo 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…
spacestringlocal (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…
tointegerPalette slot it becomes, 0..255. 0 erases.
x0integerOptional inclusive box corner; all six or none (the whole object)
x1integerInclusive box corner
y0integerInclusive box corner
y1integerInclusive box corner
z0integerInclusive box corner
z1integerInclusive 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,…

ParameterTypeDescription
fillnumberblocks: the share of a cube's cells that makes it solid, above 0 and at most 1. Defaults to 0.5.
jitternumberstagger: share of teeth flipped from the alternating pattern, 0..=1. Defaults to 0.3.
modestringblocks (default) re-quantizes into cubes; stagger breaks one-cell step edges into teeth.
originarrayblocks: a corner of the cube grid, in local cells. Defaults to [0, 0, 0].
runintegerstagger: tooth length along a step, 1..=16. Defaults to 2.
seedintegerstagger: which teeth flip. Defaults to 0.
sizeintegerblocks: the cube side in cells, 2..=4. Defaults to 2.
toleranceintegerblocks: how far, in cells, a cube may move the surface, 0..=16. Defaults to size.
x0integerInclusive box corner
x1integerInclusive box corner
y0integerInclusive box corner
y1integerInclusive box corner
z0integerInclusive box corner
z1integerInclusive 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…

ParameterTypeDescription
parts *array1..64 parts: {name, point: [x, y, z] | points: [[x, y, z], ...] | bone: name | marker: name, planes?: [{normal: [x, y, z], at: [x, y, z]}]}.
bindbooleanBind each part to the bone of its name when there is one. Defaults to true.
connectivityintegerGeodesic neighbours: 26 (default) faces, edges, and corners; 6 faces only.
metricstringgeodesic (default): distance through the solid; euclidean: straight-line distance.
objectinteger | stringThe source object by index or name. Defaults to the active one.
reachnumberCells a seed may snap to the nearest solid cell, 0..64. Defaults to 8.
removeSourcebooleanRemove the emptied source object. Defaults to true; a part named like the source keeps it.
spacestringlocal (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…

ParameterTypeDescription
accentsbooleancolors: keep small distinct colours their own slot. Defaults to true.
colorsintegerCluster the colours into this many, 1..64.
contrastnumberAccent guard: Oklab distance from every cluster an accent needs. Defaults to 0.12.
despeckleinteger | booleanMajority filter passes over the surface, 0..16; true is 1. Defaults to 0.
maxAccentsintegerAccent guard: most accents kept beyond colors, 0..16. Defaults to 4.
minSameintegerDespeckle: a cell keeps its slot when at least this many surface neighbours share it, 0..26. Defaults to 2.
minSharenumberAccent guard: share of the surface an accent needs, 0..1. Defaults to 0.002.
palettearrayInstead of colors: snap every colour to the nearest of these slots or #rrggbb colours.
protectarraySlots both passes leave alone.
x0integerInclusive box corner
x1integerInclusive box corner
y0integerInclusive box corner
y1integerInclusive box corner
z0integerInclusive box corner
z1integerInclusive 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…

ParameterTypeDescription
anchorarrayA local cell [x, y, z] of the part that stays; the seed's part is cut from it at the thinnest neck between them.
connectivityintegerNeighbours that join cells: 6 faces, 18 faces and edges, 26 (default) also corners.
copybooleansplit: leave the part in the source too.
indexinteger | stringsplit: the source object (index or name). Defaults to the active one.
intointeger | stringsplit: an existing object (index or name) to put the part in, instead of a new one.
keepintegerkeep_largest: how many of the largest parts stay. Defaults to 1.
makeActivebooleansplit: make the target the active object.
minCellsintegerremove_small: parts with fewer cells are erased.
namestringsplit: name of the new object. Defaults to <source>_part.
offsetarraymove: whole cells [dx, dy, dz].
opstringWhat to do. list (default) only reports.
radiusnumberGeodesic radius in cells around seed and anchor that the neck cut stays out of. Defaults to 0.3 of their geodesic distance.
reachnumberHow far seed and anchor may be from the solid cell they snap to, 0..=64. Defaults to 8.
seedarraydelete, 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,…

ParameterTypeDescription
palette *integerSlot the stroke paints, 1..255, or 0 for a groove.
points *array2..=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.
curvestringpolyline (default) or smooth (Catmull-Rom through the points).
depthintegerCells into the solid, 1..=16. Defaults to 1, the surface alone.
mirrorboolean | string | objectDo 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…
onlyinteger | arrayOnly cells of these slots change, such as the shell slots, so a seam stops at the skin.
reachnumberHow far a sample may be from the surface cell it snaps to, 0..=64. Defaults to 8.
spacestringlocal (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…
widthnumberWidth 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…

ParameterTypeDescription
shape *stringShape to remove.
aspectnumbertube: flatten, as fill_tube.
curvestringtube: polyline (default) or smooth.
pointsarraytube: points as in fill_tube.
profilestringtube: as fill_tube.
radiusnumberrounded_box: edge bevel. tube: radius for points that give none.
rollnumbertube: roll in degrees, as fill_tube.
spacestringlocal (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…
x0integerbox, ellipsoid, rounded_box: inclusive corner
x1integerInclusive corner
y0integerInclusive corner
y1integerInclusive corner
z0integerInclusive corner
z1integerInclusive 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…

ParameterTypeDescription
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
fillAtintegerFill an empty cell with at least this many solid neighbours, 1..=27. Defaults to 17; 14 also rounds inside edges; 27 never fills.
iterationsintegerPasses, 1..=8. Defaults to 1. Stops early when a pass changes nothing.
removeAtintegerRemove a solid cell with at most this many solid neighbours, -1..=25. Defaults to 9; 12 also rounds outside edges; -1 never removes.
spacestringlocal (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…

ParameterTypeDescription
normal *arrayOut of the wood, toward the part that breaks off. Need not be unit length.
point *arrayA point on the break plane, in local cells.
barkintegerPalette index for the rim of the new face and the base of rim splinters. Omit to keep the cells' colour.
densitynumberSplinters per cell of the new face, 0..=1. Defaults to 0.15.
depthnumberHow far pits and the uneven face reach into the wood, 0..=32 cells. Defaults to 3.
lengtharraySplinter length [min, max] in cells, 1..=64. Defaults to [4, 12].
rimBiasnumber0..=1. How much more often and longer splinters are near the rim. Defaults to 0.5.
sapwoodarrayPalette indices mixed over the new face and the splinters. Omit to keep the cells' colour.
seedintegerSeed. Defaults to 0.
splintersintegerNumber of splinters, 0..=512. Pass this or density.
tapernumber0 keeps the base radius to the tip; 1 (default) thins it to one cell.
thicknessnumberSplinter radius at its base, 0.5..=4. Defaults to 1.
tipsintegerPalette 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…

ParameterTypeDescription
palettes *arrayPalette indices, one picked per piece. A single integer works too.
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
clumpnumber0 spreads pieces evenly over the box; 1 piles them in its middle. Defaults to 0.5.
countintegerPieces, 0..=2000. Defaults to 20.
excludearrayBoxes 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…
floorintegerLowest z a piece may rest at. Defaults to the box's bottom.
kindsarrayPiece 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.
seedintegerSeed. Defaults to 0.
sizearrayPiece 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…

ParameterTypeDescription
pattern *stringcolumns, courses (running bond), or cracks
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
coursearrayCourse 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.
densitynumbercracks: the share of piece boundaries that crack, 0..=1. Defaults to 0.6.
depthintegerGap depth under the surface in cells, 1..=16. Defaults to 2.
dirtintegerPalette index for the solid cell at the bottom of each gap, such as dark dirt. Omit to keep its colour.
excludearrayBoxes 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…
onlyarrayCut only cells of these palette indices (the stone slots), so moss and plants stay. Omit to cut every slot.
seedintegerSeed. Defaults to 0.
spacingarrayStone 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.
widthintegerGap 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…

ParameterTypeDescription
facing *string | arrayThe face's outward direction, along x or y: +x, -x, +y, -y, or a vector such as [0, -1, 0].
palette *integerPalette index of the columns, usually the stone.
x0 *integerInclusive box corner; a few cells larger than the wall so columns can stand out of it
x1 *integerInclusive box corner; a few cells larger than the wall so columns can stand out of it
y0 *integerInclusive box corner; a few cells larger than the wall so columns can stand out of it
y1 *integerInclusive box corner; a few cells larger than the wall so columns can stand out of it
z0 *integerInclusive box corner; a few cells larger than the wall so columns can stand out of it
z1 *integerInclusive box corner; a few cells larger than the wall so columns can stand out of it
crownintegerHeight the column tops scatter around. Defaults to the highest solid cell in the box.
depthintegerHow far a column reaches back into the face, and how deep the cut above a short column goes, 1..=16 cells. Defaults to 3.
excludearrayBoxes 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…
lowerbooleanA column ending below the crown cuts the wall above it, so the crown is uneven. false only adds cells (only rising). Defaults to true.
outarrayHow far a column stands out of the face, [min, max] cells, 0..=16, or one number. Defaults to [1, 4].
seedintegerSeed. Defaults to 0.
toparrayColumn 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].
widtharrayColumn 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.

ParameterTypeDescription
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
brokenintegerPalette index for the faces a chip or pit uncovers, about 0.9 x the stone. Omit to keep their colour.
chipnumberChance that an edge cell starts a chip, 0..=1; corners are likelier. Defaults to 0.15. 0 chips nothing.
chipSizeintegerMost cells one chip takes, 1..=8. Defaults to 2.
excludearrayBoxes 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…
noisearrayPalette indices of the colour noise, a few tones within a few units of the stone. Omit for no noise.
noiseDensitynumberShare of exposed cells the noise recolours, 0..=1. Defaults to 0.35.
noiseScalenumberNoise patch size in cells, 1..=32. Defaults to 3.
onlyarrayAct only on cells of these palette indices (the stone slots). Omit to act on every slot.
pitDepthintegerDeepest pit in cells, 1..=4. Defaults to 1.
pitsnumberChance that a flat face cell starts a pit, 0..=1. Defaults to 0.02.
seedintegerSeed. 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…

ParameterTypeDescription
palettes *arrayPlant palette indices. A single integer works too.
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
amountnumberCoverage, 0..=1: of the passing faces (caps), or of the exposed cells (cushions). Defaults to 0.5 for caps and 0.45 for cushions.
bandarrayOnly 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.
curtainsnumbercaps: 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.
drapesnumbercushions: share of cushion edges over a drop that a drape hangs from, 0..=1 (layer grow). Defaults to 0.35. 0 hangs none.
excludearrayBoxes 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…
exposurenumbercushions: 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.
facesstring | arrayFaces it grows on: top, side, bottom, all, or a list of them. Defaults to top and side.
facingarrayOnly 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…
gapintegercushions: fewest cells between two cushions, 1..=8. Defaults to 2.
layerstringgrow adds cells on the empty side of each face; paint recolours the surface. Defaults to grow, paint for algae. vines always grow.
lengtharrayCurtain 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.
noisenumber0 grows in smooth patches, 1 in ragged speckle. Defaults to 0.5.
onlyarrayGrow only on cells of these palette indices (the stone slots). Omit for every slot.
seedintegerSeed. Defaults to 0.
sizearraycushions: cushion radius range [min, max] in cells, 1..=16, or one number. Defaults to [2, 5].
stylestringcaps (default): caps and curtains. cushions: separate cushions on exposed cells with drapes from overhangs.
thicknessintegerCushion 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.

ParameterTypeDescription
palettes *arrayPlant palette indices. A single integer works too.
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
amountnumberCoverage at the bottom of the band, 0..=1. Defaults to 0.9.
bandarrayOnly 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.
excludearrayBoxes 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…
facesstring | arrayFaces it grows on: top, side, bottom, all, or a list of them. Defaults to top and side.
facingarrayOnly 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…
layerstringgrow adds cells on the empty side of each face; paint recolours the surface. Defaults to grow, paint for algae. vines always grow.
noisenumber0 grows in smooth patches, 1 in ragged speckle. Defaults to 0.5.
onlyarrayGrow only on cells of these palette indices (the stone slots). Omit for every slot.
seedintegerSeed. 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…

ParameterTypeDescription
palettes *arrayPlant palette indices. A single integer works too.
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
amountnumberShare of top edge cells a strand starts from, 0..=1. Defaults to 0.08.
bandarrayOnly 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.
bloomChancenumberChance of a bloom beside each strand cell, 0..=1. Defaults to 0.06.
bloomsarrayPalette indices of blooms beside the strands. Omit for none.
excludearrayBoxes 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…
facesstring | arrayFaces it grows on: top, side, bottom, all, or a list of them. Defaults to side.
facingarrayOnly 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…
layerstringgrow adds cells on the empty side of each face; paint recolours the surface. Defaults to grow, paint for algae. vines always grow.
lengtharrayStrand length range [min, max] in cells, 1..=128, or one number. Defaults to [4, 16].
noisenumber0 grows in smooth patches, 1 in ragged speckle. Defaults to 0.5.
onlyarrayGrow only on cells of these palette indices (the stone slots). Omit for every slot.
seedintegerSeed. 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…

ParameterTypeDescription
palettes *arrayPlate slots, a few bark tones within a few units of each other; each plate takes one.
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
axisstring | arrayThe grain along a straight axis: x, y, z, or a vector [x, y, z]. Pass this or points.
cracksnumberShare of plates with a crack part way across, 0..=1. Defaults to 0.25.
curvestringWith points: polyline (default) or smooth, as the tube used.
deptharrayFissure depth range [min, max] in cells, 1..=4, or one number. Plate ends and cracks take the minimum. Defaults to [1, 2].
dirtintegerPalette index for the cell at the bottom of each fissure, a dark brown. Omit to keep its colour.
excludearrayBoxes 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…
lengtharrayPlate length range [min, max] in cells along the grain, 2..=256, or one number. Defaults to [8, 20].
onlyarrayAct only on cells of these palette indices (the wood). Omit to act on every slot.
pointsarrayThe 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.
seedintegerSeed. Defaults to 0.
widtharrayPlate 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…

ParameterTypeDescription
axis *stringThe way the boards run.
palettes *arrayBoard tones, at least two different slots, ideally three or more within a few units of each other; each board takes one.
x0 *integerInclusive corner of the rectangle
x1 *integerInclusive corner of the rectangle
y0 *integerInclusive corner of the rectangle
y1 *integerInclusive corner of the rectangle
z *integerThe top layer of the boards: they run from z down through thickness layers, and the dirt cell lies under them.
darkintegerPalette index of nails and knots. Omit for neither.
dirtintegerPalette 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.
excludearrayBoxes 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…
gaparray | numberGap width between boards in cells, a number or [min, max], 1..=8. Defaults to 1.
knotsnumberShare of boards with a dark knot along the middle, 0..=1, with dark. Defaults to 0.15.
lengtharray | numberBoard length range along the axis in cells [min, max], 2..=256. Defaults to [8, 20].
nailsnumberShare of boards with a dark nail near each end, 0..=1, with dark. Defaults to 0.25.
onlyarrayAct 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.
raggednumberChance 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.
seedintegerSeed. Defaults to 0.
thicknessintegerLayers of board, the gaps run through them all, 1..=16. Defaults to 2.
widtharray | numberBoard 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…

ParameterTypeDescription
x0 *integerInclusive box corner
x1 *integerInclusive box corner
y0 *integerInclusive box corner
y1 *integerInclusive box corner
z0 *integerInclusive box corner
z1 *integerInclusive box corner
brightennumberWithout pairs: the lighter shade's colour as a factor of the slot's, above 1 up to 4. Defaults to 1.18.
darknumberHow concave a cell must be to darken, 0..=1: 0 a flat face, 1 a closed pocket. Defaults to 0.12.
darkennumberWithout pairs: the darker shade's colour as a factor of the slot's, 0.05..1. Defaults to 0.72.
excludearrayBoxes 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…
lightnumberWith lighten: how convex a cell must be to lighten, 0..=1: 0 a flat face, 1 a lone spike. Defaults to 0.25.
lightenbooleanAlso lighten exposed ridges and corners. Defaults to false.
onlyarrayAct only on cells of these palette indices. Omit to act on every slot.
pairsarray[slot, darker] or [slot, darker, lighter] per slot (0 leaves that tint out). Slots without a pair stay. Omit to make shades.
radiusintegerRadius 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…

ParameterTypeDescription
count *integerHow many recesses round the axis, 1..=256.
kind *stringflutes: grooves along a shaft's side. gores: a dome's segments dished between meridian ribs.
axisstringThe axis the recesses repeat round. Defaults to z.
brightennumberWith light true: the light tone's colour as a factor of the slot's, above 1 up to 4. Defaults to 1.18.
centerarrayThe 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…
darkennumberWith shade true: the shade's colour as a factor of the slot's, 0.05..1. Defaults to 0.72.
depthnumberDeepest recess depth, 0.5..=4 cells, in from the outer surface. Defaults to 1.
endsstringHow a recess ends over fade cells: round (a cupped end, the default), taper (a straight ramp), or square (full depth to the end).
excludearrayBoxes 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…
fadenumberCells 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.
fromintegerFirst cell along the axis: the flutes' lower end, the dome's foot. Defaults to the solid's lowest cell in the box.
jitternumberShare of random change in each recess's depth and place, 0..=1. Defaults to 0: architecture is regular.
lightinteger | booleanTone 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.
onlyarrayAct only on cells of these palette indices. Omit to act on every slot.
phasenumberTurns 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…
profilestringSection across a recess: u (round-bottomed, the default), v (straight sides), or flat (a flat floor over the middle half, sloped sides).
ribHeightintegerRaise the ribs by this many cells, 0..=4, in the ribs slot (or the slot under them). Defaults to 0.
ribWidthnumberGores: width of the rib line between two gores, 0..=16 cells. Defaults to 2, which keeps a rib whole down a steep side.
ribsintegerPalette 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.
seedintegerSeed of the jitter. Defaults to 0.
shadeinteger | booleanTone 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.
spacestringlocal (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…
tointegerLast cell along the axis: the flutes' upper end, the dome's top. Defaults to the solid's highest cell in the box.
widthnumberFlutes: cells across each flute, 0.5..=64, at most the pitch. Defaults to 0.6 of the pitch (the outline's length over count).
x0integerInclusive 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.
x1integerInclusive 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.
y0integerInclusive 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.
y1integerInclusive 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.
z0integerInclusive 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.
z1integerInclusive 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.…

ParameterTypeDescription
palettes *array1 to 8 leaf slots from the darkest to the lightest: shade, mid, light, sunlit tips.
boxesarrayCrown volume: inclusive [x0, y0, z0, x1, y1, z1] boxes.
coreintegerPalette index of the dark core inside the crown, seen in the gaps. Defaults to the first of palettes.
darknumberHow strongly undersides and seams darken toward the first palette, 0..=2. Defaults to 1.
ellipsoidsarrayCrown 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.
excludearrayBoxes 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…
flattennumberClump height over width, 0.2..=1.5; below 1 clumps are wider than tall. Defaults to 0.7.
fromarrayCrown 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.
gapnumberExtra cells between neighbouring clumps, 0..=8. Larger shows more dark core between them. Defaults to 1.
grooveintegerWith masses: how many cells deeper the grooves between lobes go, 0..=8. Defaults to 2.
lightnumberHow strongly sunlit tops lighten toward the last palette, 0..=2. Defaults to 1.
massesintegerLobes the clumps are grouped into, 0..=16, split by deeper grooves and each with its own tone. 0 (the default) is none.
protectarraySlots never written, even when they are also crown slots. Any slot not in palettes, core, or from is already kept (the wood).
raggednumberLeafy outline noise of each clump, 0..=1. 0 is a smooth ellipsoid. Defaults to 0.4.
seedintegerSeed. Defaults to 0.
sizearrayClump radius range [min, max] in cells, 1..=32, or one number. Defaults to [3, 6].
sunarrayDirection toward the sun [x, y, z], Z up. Defaults to [-0.35, -0.45, 1], high at the front left.
x0integerInclusive box corner the writes stay inside. Omit all six to bound the crown by its volume.
x1integerInclusive box corner the writes stay inside. Omit all six to bound the crown by its volume.
y0integerInclusive box corner the writes stay inside. Omit all six to bound the crown by its volume.
y1integerInclusive box corner the writes stay inside. Omit all six to bound the crown by its volume.
z0integerInclusive box corner the writes stay inside. Omit all six to bound the crown by its volume.
z1integerInclusive 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…

ParameterTypeDescription
points *arrayPath 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.…
curvestringpolyline (default) or smooth
heightnumberRounded rectangle height up from the path, 0.5..=512. Used without profile.
modestringreplace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells.
paletteintegerPalette index, 0 to erase the solid cells it covers, or pass palettes
palettesarrayPalette indices 1..=255 laid out by pattern
patternstringbands (default) by height v in the profile, period cells each, like strata; rings along the path; random per cell
periodnumberBand or ring size in cells, 0.5..=512. Defaults to 2.
profilearrayClosed 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.
radiusnumberRounded rectangle corner radius, 0 up to half the smaller side. Defaults to 0.
seedintegerSeed of the random pattern. Defaults to 0.
widthnumberRounded 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…

ParameterTypeDescription
outline *arrayThe 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).
curvestringpolyline (default) or smooth, a closed curve through the points
insetnumber | arrayHow 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…
onlyarrayPalette slots to remove or recolour; others stay. Defaults to every slot.
skinintegerPalette slot of a new skin along the surface. Omit for none.
thicknessnumberThe 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.
x0integerBox corner (optional; with all six, nothing outside the box is removed or written)
x1integerBox corner
y0integerBox corner
y1integerBox corner
z0integerBox corner
z1integerBox 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…

ParameterTypeDescription
op *stringThe deform.
amplitudenumberdisplace: the most the surface moves, 0.5..=32 cells. Defaults to 2.
anglenumberbend: degrees, -180..=180 (negative bends away from direction). twist: degrees over the length.
axisstringbend, taper, twist: the axis they run along. Defaults to z.
biasnumberdisplace: -1 only dents, 0 dents and bulges (default), 1 only bulges.
centerarraybend, 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.
directionstringbend: the way the cells curl, across the axis. Defaults to +x for axis z, else +z.
endnumbertaper: scale at the end of the length, 0.05..=16. Defaults to 0.5.
factornumber | arrayscale: how much larger, 0.25..4, or [x, y, z] per axis. Defaults to 1.5.
falloffnumberscale: cells (before scaling) over which the scale eases back to none, 0.5..512. Defaults to radius.
lengthnumberbend, taper, twist: how far along the axis they run, 0.5..=4096. Defaults to the cells' extent.
minFeatureintegerAny op: report the parts of the object thinner than this many cells after the deform, 2..16.
octavesintegerdisplace: 1..=6 layers, each half the size and height. Defaults to 2.
originnumberbend, taper, twist: where along the axis they start, in local cells. Defaults to the cells' lowest.
pointarrayscale: the centre of the part, local cells [x, y, z].
radiusnumberscale: cells around point scaled as one piece, 0.5..512.
scalenumberdisplace: bump size in cells, 1..=512. Defaults to 8.
seedintegerdisplace: noise seed. Defaults to 0.
startnumbertaper: scale at the origin, 0.05..=16. Defaults to 1.
x0integerRegion corner (optional; with all six only the box's cells change)
x1integerRegion corner
y0integerRegion corner
y1integerRegion corner
z0integerRegion corner
z1integerRegion 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…

ParameterTypeDescription
shapes *array1..=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…
colorsstringnearest (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.
grownumberFill where the blended distance is at most this, -16..=16 cells: above 0 thickens the whole form, below 0 thins it. Defaults to 0.
knumberDefault smoothing radius in cells for every shape that leaves k out, 0..=64. 0 is a hard union. Defaults to 3.
mirrorboolean | string | objectDo 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…
modestringreplace (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.
paletteintegerDefault palette slot of union shapes that leave palette out, 0..255 (0 erases).
seamnumberWith colors nearest: dither the boundary between two shapes' slots over this many cells, 0..=32. Defaults to 0, a sharp boundary.
seedintegerSeed of the seam dither. Defaults to 0.
spacestringlocal (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…
x0integerOptional inclusive box that clips the evaluation; pass all six corners or none.
x1integerBox corner
y0integerBox corner
y1integerBox corner
z0integerBox corner
z1integerBox 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…

ParameterTypeDescription
points *arrayPath 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…
capsstringflat (default) or round ends.
curvestringpolyline (default) or smooth
flatTopnumberDefault flat side, -1..=1: above 0 cuts the top at ry * (1 - flatTop), below 0 the bottom. Defaults to 0.
frequencynumberDefault lumps around the outline, 0..=64. Defaults to 5.
modestringreplace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells.
noisenumberDefault outline noise as a fraction of the radius, 0..=0.9. Defaults to 0.
paletteintegerPalette index, or pass palettes
palettesarrayPalette indices laid out by pattern
patternstringrings (default) along the length, stripes around it, random per cell
periodnumberRing length in cells, 0.5..=512. Defaults to 2.
radiusnumberDefault rx and ry of points that leave them out.
rollnumberDefault roll of the section about the path, in degrees. Defaults to 0.
rxnumberDefault half-width across the path.
rynumberDefault half-height. Defaults to rx.
sectorsintegerStripes around, 1..=256. Defaults to the number of palettes.
seedintegerSeed of the outline noise and the random pattern. Defaults to 0.
spacestringlocal (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…

ParameterTypeDescription
op *stringThe brush.
points *arrayDab centres in local cells: [x, y, z], [x, y, z, radius], [x, y, z, radius, strength], or {x, y, z, radius?, strength?}.
falloffstringHow a dab fades to its radius. Defaults to smooth.
onlyarrayPalette indices the brush may change; other cells stay. Omit for all.
paletteintegerSlot of added cells. Defaults to the nearest solid cell's.
radiusnumberDefault dab radius in cells, 0.5..=64. Defaults to 3.
spacestringlocal (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…
spacingnumberMost cells between dabs, 0..=256; 0 lays one per point. Defaults to half the radius.
strengthnumberDefault strength, 0..=1. Defaults to 0.5, or 1 for grab.
vectorarraygrab: [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,…

ParameterTypeDescription
views *array2 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…
alphaThresholdnumberAlpha below this is background, 1..255, for every view without its own. Defaults to 128.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b], for every view without its own.
cellsPerPixelnumberCells per image pixel for every view without its own size or cellsPerPixel, such as 0.25 for 4 pixels a cell.
coveragenumberShare of a cell's footprint in a view that must be inked, 0..1. Defaults to 0.5.
depthPathstringA 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.
depthTolerancenumberCells in front of a depth surface that still stay, 0..64. Defaults to 0.
downscaleboolean | objectPixelate 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…
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own.
fillHolesboolean | numberInk 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…
floodboolean | number | objectFlood 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…
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash, for every view without its own.
modestringreplace (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…
originarrayLocal cell of the box's minimum corner. Defaults to [0, 0, 0].
paletteintegerOne palette index for every cell, instead of the views' colours.
pathstringThe sheet PNG for every view without its own path or rows.
shellintegerKeep only cells within this many cells of the outside, 1..64: a hollow shell. Omit for solid.
sizearrayBox [x, y, z] in cells, 1..2048 each; null takes the largest view along that axis.
slotsarrayPalette indices image colours quantise to. Defaults to all of 1..255. A legend's palette index is used as it is.
smoothintegerPasses of smooth over the hull, 0..64 (fillAt 17, removeAt 9). Defaults to 0.
spacestringlocal (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…
tolerancenumberRGB 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…

ParameterTypeDescription
alphaThresholdnumberAlpha below this is background, 1..255. Defaults to 128.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b].
cellsPerPixelnumberCells per image pixel, such as 0.25 for 4 pixels a cell. Defaults to stretching the image over the box.
coveragenumberShare of a grid cell's footprint that must be inked, 0..1. Defaults to 0.5.
croparray[x, y, width, height] of the image in pixels. Defaults to the whole image.
depthintegerSolid cells painted per ray from the visible surface, 1..64. Defaults to 1.
erasearrayRectangles [x, y, width, height] in image pixels (as crop is) whose pixels go: a rider, a label.
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40.
fillHolesboolean | numberInk 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…
flipbooleanMirror the image left to right.
floodboolean | number | objectFlood 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…
imageSizearray[across, down] cells the image spans, instead of cellsPerPixel.
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash.
legendobjectrows: {char: palette index or #rrggbb}.
maskstring | objectA 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),…
mirrorboolean | string | objectDo 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…
normalLimitnumberDegrees, 0..90: leave a surface whose normal is further than this from the view direction. Omit for no limit.
onlyarrayPalette indices that may be repainted; other cells keep their slot. Omit for all.
originarrayLocal cell of the box's minimum corner. Defaults to the object's.
paletteintegerOne palette index for every inked pixel, instead of the image's colours.
pathstringThe image PNG.
pitchnumberDegrees above the horizon, -90..90; 90 looks straight down. Instead of view.
rowsarrayThe image as rows of characters instead of path; . and space are background.
sizearrayBox [x, y, z] in cells, 1..2048 each; null (or leaving it out) reaches the object's far side.
slotsarrayPalette indices image colours quantise to. Defaults to all of 1..255.
spacestringlocal (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…
tolerancenumberRGB distance from the key colour that is still background, 0..442. Defaults to 40.
viewstringThe side the image looks from. Or pass yaw and pitch.
yawnumberDegrees 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…

ParameterTypeDescription
accentsbooleannewSlots: keep small distinct colours their own slot. Defaults to true.
alphaThresholdnumberAlpha below this is background, 1..255. Defaults to 128.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b], for every view.
blendstringnearest (default): the view the normal faces most, blended within seam of a boundary; soft: every view that sees the cell, by facing.
contrastnumberAccent guard: Oklab distance from every cluster an accent needs. Defaults to 0.12.
downscaleboolean | objectPixelate 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…
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own.
fillHolesboolean | numberInk 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…
fitstringWhat of each view maps onto the box: ink (default) its ink bounds, crop the whole crop.
floodboolean | number | objectFlood 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…
insetintegerPixels: 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).
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash, for every view without its own.
maxAccentsintegerAccent guard: most accents kept beyond newSlots, 0..16. Defaults to 4.
minSharenumberAccent guard: share of the painted cells an accent needs, 0..1. Defaults to 0.002.
mirrorbooleanMake a missing right view from the left one mirrored, and the other way. Defaults to true.
newSlotsintegerInstead of slots: up to this many new colours (1..64) clustered from the painted ones, in free slots.
objectsarrayObjects to paint together, by name or index. Defaults to the active object.
onlyarrayPalette indices that may be repainted. Omit for all.
pathstringThe sheet PNG every view reads unless it has its own path.
reachnumberCells: a footprint off a view's ink takes the nearest ink within this, 0..64. Defaults to 3.
seamnumbernearest: degrees around the boundary between the two best views where they blend, 0..45. Defaults to 12.
sharpnessnumbersoft: the power of the facing weight, 0..64. Defaults to 4.
slotsarrayPalette indices colours quantise to. Defaults to the slots the painted objects use.
spacestringlocal (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…
tolerancenumberRGB distance from the key colour that is still background, 0..442. Defaults to 40.
viewsarray1..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.
x0integerBox corner of the painted cells (all six or none).
x1integerOpposite box corner.
y0integerBox corner.
y1integerOpposite box corner.
z0integerBox corner.
z1integerOpposite 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…

ParameterTypeDescription
palettes *object{ring: slot or [slots], seam: slot (0 cuts a groove), central?: defaults to ring, band?: defaults to ring, rim?: defaults to band}.
bandnumberShare of the radius the outer band spans, 0..0.6; 0 for none. Defaults to 0.15.
bandCountintegerPlates in the band, 0..64; 0 is one unbroken band. Defaults to twice the last ring's.
centerarrayPlan centre [x, y]. Defaults to the middle of the taken cells.
centralnumberShare of the radius the central plate spans, 0..0.9; 0 for none. Defaults to 0.22.
depthintegerCells a plate's slot reaches in along the normal, 1..8. Defaults to 1.
facingnumberDegrees from straight up a taken cell's normal may be, 0..180. Defaults to 80.
jitternumberHow far boundaries and seeds move, 0..1. Defaults to 0.25.
layoutstringrings (default): sectors per ring; voronoi: nearest seed.
onlyarrayOnly cells of these slots are taken.
rimnumberRim width in cells along the surface at the edge, 0..32. Defaults to 1.
ringsarray | integerPlates per ring from the centre out, 1..64 each, at most 8 rings. Defaults to [6].
seamDepthintegerCells a seam reaches in (the groove's depth with seam 0), 1..8. Defaults to 1.
seamWidthnumberSeam width in cells, 0.5..6. Defaults to 1.
seedintegerSeed of the jitter and of each plate's slot pick. Defaults to 1.
spacestringlocal (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…
symmetricbooleanMirror the layout across the plane through the centre along y. Defaults to true.
x0integerBox corner of the taken cells (all six or none).
x1integerOpposite box corner.
y0integerBox corner.
y1integerOpposite box corner.
z0integerBox corner.
z1integerOpposite box corner.
zRangearrayInclusive 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…

ParameterTypeDescription
size *number | arrayCells across along the surface, 1..256 (the height follows the picture), or [across, down].
alphaThresholdnumberAlpha below this is background, 1..255. Defaults to 128.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b].
coveragenumberShare of a grid cell's footprint that must be inked, 0..1. Defaults to 0.5.
croparray[x, y, width, height] of the image in pixels. Defaults to the whole image.
depthintegerCells painted into the solid along the normal, 1..16. Defaults to 1.
flipbooleanMirror the picture left to right.
legendobjectrows: {char: palette index or #rrggbb}.
mirrorboolean | string | objectDo 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…
normalLimitnumberDegrees, 1..180: the decal stops where the surface turns further than this from the point's normal. Defaults to 90.
onlyarrayPalette indices that may be repainted; other cells keep their slot. Omit for all.
paletteintegerOne palette index for every inked pixel, instead of the picture's colours.
pathstringThe picture PNG.
pointarrayLocal [x, y, z] near the surface; the decal centres on the nearest surface cell within reach.
rayobject{origin: [x, y, z], direction: [x, y, z]}: the decal centres on the first solid cell the ray meets. Instead of point.
reachnumberHow far point may be from the surface, 0..64 cells. Defaults to 8.
rowsarrayThe picture as rows of characters instead of path; . and space are background.
slotsarrayPalette indices picture colours quantise to. Defaults to all of 1..255.
spacestringlocal (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…
tolerancenumberRGB distance from the key colour that is still background, 0..442. Defaults to 40.
uparrayThe 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…

ParameterTypeDescription
alphaThresholdnumberAlpha below this is background, 1..255, for every view without its own. Defaults to 128.
applybooleanTurn and scale the object (default true); false only reports the best turn.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b], for every view without its own.
fineAxesstringAxes 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.
heightnumberCells along up after the turn, 1..=256. Instead of size or scale.
pathstringThe sheet PNG for every view without its own path or rows.
resolutionintegerLongest side of the projected model masks in pixels, 8..=512. Defaults to 64.
scalenumberScale factor, above 0 and at most 16. Defaults to 1, the turn alone.
sizenumberCells along the longest axis after the turn, 1..=256. Instead of height or scale.
tolerancenumberRGB distance from the key colour that is still background, 0..442, for every view without its own. Defaults to 40.
turnsstringall (default): the 24 axis-aligned turns; upright: the 4 about up, for an object already standing on its base.
viewsarray1 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}.
yawRangenumberFine steps go this many degrees each way, 0..=180. Defaults to 45.
yawStepnumberDegrees 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…

ParameterTypeDescription
views *array1 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,…
alignstring | objectfit (default), height, width, or {scale, offset}: crop pixel p lands on cell column p * scale + offset. A view's own align overrides it.
alphaThresholdnumberAlpha below this is background, 1..255, for every view without its own. Defaults to 128.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b], for every view without its own.
colorWeightnumberCost of a colour 255 RGB apart, 0..100. Defaults to 1.
coveragenumberShare of a cell column's footprint that must be inked, 0..1. Defaults to 0.5.
depthPathstringA 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.
depthTolerancenumberCells in front of a depth surface that still count as on it, 0..64. Defaults to 0.
depthWeightnumberCost of a first cell 8 or more cells from the reference's or the depth map's, 0..100. Defaults to 0.5.
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own.
fillHolesboolean | numberInk 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…
floodboolean | number | objectFlood 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…
isolatebooleanFit the active object alone; by default other visible objects cover and hide but never change.
iterationsintegerMost shape sweeps, 0..64; 0 only recolours. Defaults to 8.
keeparrayPalette indices whose cells are never removed or recoloured (hand-set eyes); they still cover and hide.
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash, for every view without its own.
marginintegerEmpty cells around the bounds the fit may fill, 0..64. Defaults to 15% of the largest extent, at least 4.
maskWeightnumberCost of a missing or excess view pixel, 0..100. Defaults to 1.
normalLimitnumberDegrees, 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…
pathstringThe sheet PNG for every view without its own path or rows.
recolorbooleanRecolour the cells the views see. Defaults to true. Off for a part with a hand-set face, so only its shape is fitted.
referenceinteger | stringAnother object (index or name) whose front surface is the depth target, such as a mesh imported with import_mesh newObject. Omit for none.
roundAxesstringAxes 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.
roundWeightnumberCost 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…
roundnessnumberSuperellipse exponent of the rounding prior, 1..16: 2 is an ellipse, larger is squarer. Defaults to 2.5.
seedintegerShuffles the order rays are visited in. Defaults to 1.
shapebooleanAdd and remove cells. Defaults to true.
sharedScalebooleanViews placed with fit share one scale (the median), offsets refitted at it, as a sheet is drawn at one scale. Defaults to true.
slotsarrayPalette indices the colours may take. Defaults to the slots the object holds.
smoothWeightnumberCost of each exposed cell face, 0..100; keeps lone spikes and pits out. Defaults to 0.1.
tolerancenumberRGB 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…

ParameterTypeDescription
accentSharenumberShare of the views' coloured pixels under which a colour is an accent, 0..0.5. Defaults to 0.04.
accentsbooleanThe accent guard (default true): small distinct colours keep their cells.
alphaThresholdnumberAlpha below this is background, 1..255, for every view without its own. Defaults to 128.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b], for every view without its own.
bandintegerCells from the starting surface that may be added (outside) or removed (inside), 0..8. Defaults to 2.
colorCarvebooleanRemove 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).
connectedbooleanNo removal splits the object into more parts. Defaults to true.
depthPathstringA 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.
depthTolerancenumberCells off a depth surface that still count as on it, 0..16. Defaults to 0.5.
depthWeightnumberCost of a front 4 or more cells off the depth map's surface, 0..16. Defaults to 0.5.
downscaleboolean | objectPixelate 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…
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own.
fillHolesboolean | numberInk 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…
fitstringink (default): each view's ink bounds map onto the box; crop: the whole rows grid. A downscaled view is always its grid.
floodboolean | number | objectFlood 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…
iterationsintegerMost shape passes, 0..64; 0 only recolours. Defaults to 8.
keeparrayPalette indices whose cells are never removed or recoloured (hand-set eyes).
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash, for every view without its own.
minFeatureintegerNo 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.
mirrorbooleanA missing right view is the left one mirrored, and the other way. Defaults to true.
pathstringThe sheet PNG for every view without its own path or rows.
recolorbooleanRecolour the surface. Defaults to true.
semanticboolean | objectThe 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…
shapebooleanAdd and remove cells. Defaults to true.
sharpnessnumberExponent of a view's facing weight, 0..16. Defaults to 2.
slotsarrayPalette 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.
smoothnumberWeight of the smoothness term against the views' vote, 0..4: higher merges colour patches more. Defaults to 0.6.
surfaceWeightnumberCost of each exposed cell face, 0..4; keeps lone spikes out. Defaults to 0.05.
tolerancenumberRGB distance from the key colour that is still background, 0..442, for every view without its own. Defaults to 40.
viewsarray1 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)…

ParameterTypeDescription
accentsbooleanKeep small distinct colours (eyes) their own colour beyond colors. Defaults to true.
alphaThresholdnumberAlpha below this is background, 1..255. Defaults to 128.
backgroundstring | arrayauto (default), alpha, #rrggbb, or [r, g, b], for every view.
colorsintegerClusters of the shared palette, 1..32. Defaults to 6.
contrastnumberAccent guard: Oklab distance from every cluster an accent needs. Defaults to 0.12.
coveragenumberShare of a cell's footprint that must be inked, 0..1. Defaults to 0.5.
despeckleintegerPasses 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.…
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own.
featuresboolean | objectKeep 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)}.
fillHolesboolean | numberInk 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…
floodboolean | number | objectFlood 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…
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash, for every view without its own.
linesboolean | objectKeep 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…
maxAccentsintegerAccent guard: most accents beyond colors, 0..16. Defaults to 4.
mergeLinesnumber | booleanWith 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…
minSharenumberAccent guard: share of the ink an accent needs, 0..1. Defaults to 0.002.
outlinebooleanWith 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.
pathstringThe sheet PNG every view reads unless it has its own path.
pngstringWrite the pixelated views side by side to this PNG for checking.
pngScaleintegerPixels a cell in png, 1..64. Defaults to 8.
sizearrayBox [x, y, z] in cells, 1..512 each; at least one axis, null follows the views' proportions.
thinnumber | booleanLeast 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.
tolerancenumberRGB distance from the key colour that is still background, 0..442. Defaults to 40.
viewsarray1..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…

ParameterTypeDescription
path *stringThe views sheet PNG.
alphaThresholdnumberAlpha below this is background, 1..255. Defaults to 128.
backgroundstring | arrayauto (default: transparent pixels, else the commonest border colour), alpha, #rrggbb, or [r, g, b].
checkTolerancenumberLargest difference, in percent, a check passes with. Defaults to 3.
croparray[x, y, width, height]: read only this part of the image. Crops in the reply stay in image pixels.
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes, for every view without its own.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40, for every view without its own.
fillHolesboolean | numberInk 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…
floodboolean | number | objectFlood 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…
gapnumberPixels between two regions' boxes that still merge them into one view. Defaults to 12.
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash, for every view without its own.
layoutarrayView names of a 2 x 2 sheet in reading order. Defaults to [front, side, top, back].
minSharenumberA region under this share of the largest one's pixels is left out (labels, specks). Defaults to 0.02.
partsboolean | objectCount 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)}…
pitchRangearray[low, high] cube pitch searched, in pixels. Defaults to [4, 96].
tolerancenumberRGB 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…

ParameterTypeDescription
concept *stringConcept PNG path
path *stringOverlay PNG to write. Its folder is created.
alignstring | objectfit (default), height, width, or {scale, offset: [x, y]}.
alphaThresholdnumberAlpha below which a pixel is background, 1..255. Defaults to 128.
antialiasbooleanDefaults to true.
backgroundstring | arrayThe concept's background: auto (default), alpha, #rrggbb, or [r, g, b].
croparray[x, y, width, height] of the concept view in pixels. Defaults to the whole image.
erasearrayRectangles [x, y, width, height] in image pixels (as crop is) whose pixels go: a rider, a label.
excludeColorsarrayColours (#rrggbb or [r, g, b]) whose pixels are background too, such as water and splashes.
excludeTolerancenumberRGB distance from an excludeColors colour that still goes, 0..442. Defaults to 40.
fillHolesboolean | numberInk 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…
flipbooleanMirror the concept left to right.
floodboolean | number | objectFlood 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…
fovnumberPerspective field of view in degrees. Defaults to 50.
heightinteger16..4096
isolatebooleanDraw only object.
keepLargestbooleanKeep only the largest connected inked region, dropping specks and a separate splash.
lightingstring | objectA 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…
lightingPresetsobject | stringLighting 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…
marginnumberEmpty border on each side, 0..0.45. Defaults to 0.06.
maskstring | objectA 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),…
objectinteger | stringFrame this object (index or name).
orthographicbooleanOrthographic, as a turnaround sheet is drawn.
pitchnumberDegrees, -90..90.
placementYawnumberDegrees: 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…
poseobjectBone name to quaternion, as in preview.
presetstringCamera 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.
presetsobject | stringA 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…
tolerancenumberRGB distance of a key colour, 0..442. Defaults to 40.
viewstringNamed 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.
widthinteger16..4096
yawnumberDegrees. 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]…

ParameterTypeDescription
name *stringMarker name, 1 to 64 characters, such as ledge_top_4m. The glTF node takes it.
directionarrayconnector: the way the joining end faces, [x, y, z], normalised
kindstringpoint (default), box (collision), or connector
objectinteger | stringObject index or name it belongs to. Defaults to the active object.
pointarraypoint and connector: [x, y, z] in local mesh units
x0integerbox: inclusive cell corner; the box spans x0..x1+1
x1integerbox: inclusive cell corner
y0integerbox: inclusive cell corner
y1integerbox: inclusive cell corner
z0integerbox: inclusive cell corner
z1integerbox: inclusive cell corner

remove_marker

Remove the marker called name, or every marker with all: true. One undo step. Replies with removed.

ParameterTypeDescription
allbooleanRemove every marker
namestringMarker 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…

ParameterTypeDescription
excludearrayPalette indices to leave out, such as moss, vines, and rope. These are slots, not the boxes the stone tools take under this name.
holeSizeintegerThe 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.
layerintegerHorizontal 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.
maxBoxesintegerMost 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…
minFeatureintegerIgnore 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…
objectinteger | stringObject index or name. Defaults to the active object.
onlyarrayCover only cells of these palette indices. Omit for every slot.
prefixstringMarker 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.
zBandsarrayHorizontal 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…

ParameterTypeDescription
path *stringPath of the .glb, .gltf, or .obj
anchorstringPoint of the mesh's box placed at position: min (default) the low corner, center, or bottom (the centre of the bottom face).
cleanboolean | objectRun 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,…
colorsstringauto (default): base-colour texture times factor times vertex colours; vertex: vertex colours only.
coveragenumberKeep 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…
fillstringsolid (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.
keepThinbooleanWith 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.
maxNewSlotsintegerMost palette slots written with new colours, 0..=255. Defaults to 32; 0 maps to the nearest existing slots.
minFeatureintegerReport the imported parts thinner than this many cells, 2..16 (thin in the reply).
modestringreplace (default) writes every cell of the shape; empty writes only empty cells, so existing detail stays; paint recolours only solid cells.
namestringName of the new object (with newObject). Omit for Object N.
newObjectbooleanCreate a new object for the mesh and make it active. Defaults to false.
orientobject | stringTurn 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…
paletteintegerPaint every cell this palette index instead of sampling colours.
positionarrayWhere 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].
rotationarrayDegrees about x, then y, then z (cell axes), after the up axis. Defaults to [0, 0, 0].
scalenumberCells per file unit (per metre for a glTF). Instead of size.
sizenumberCells along the longest axis, 1..=256. Defaults to 64 when neither scale nor voxelSize is given.
slotsarrayMap colours only to these palette indices (the nearest of them); the palette is unchanged.
tolerancenumbersRGB distance (0..=442) under which an existing slot is reused. Defaults to 12.
upAxisstringThe file's up axis. y (default, glTF and most OBJ) turns it to Z-up; z keeps the axes.
voxelSizenumberMetres 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.

ParameterTypeDescription
axis *stringx, y, or z
index *integerObject index to copy
name *stringName of the copy
mirrorBonesbooleanCopy the bound bone subtree and swap _l/_r. Default false.
positionarrayWorld 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.

ParameterTypeDescription
indexinteger | stringObject 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…

ParameterTypeDescription
boxesarrayOne 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.
copybooleanLeave the cells in the source too. Default false (move).
indexinteger | stringSource object index or name. Defaults to the active object.
intointeger | stringExisting target object, by index or name. Omit to create a new object.
invertbooleanTake every cell the boxes and slots do not select. Default false.
makeActivebooleanMake the target the active object. Default false.
namestringName of the new object. Defaults to the source's name with _part.
slotsinteger | arrayOnly cells of these palette slots (the mask). Omit for every slot.
spacestringlocal (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.

ParameterTypeDescription
name *stringUnique bone name
pivot *arrayWorld pivot [x, y, z]. Fractional values sit between cells.
parentstring | nullParent bone name. Omit or null for a root.
restarrayRest 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.
rotationarrayQuaternion [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…

ParameterTypeDescription
name *stringBone to edit
bandnumberWith joint, parts apart: cells past the closest gap that still count. Default 0.5.
jointbooleanMeasure the pivot at the joint with the parent's part (see place_joints). Not with pivot.
parentstring | nullParent bone. null makes a root. Omit to leave the parent.
pivotarrayWorld pivot [x, y, z]
renamestringNew unique name
restarrayRest 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.
restFromPosebooleanKeep 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.
rotationarrayQuaternion [x, y, z, w]
snapstringWith 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,…

ParameterTypeDescription
bandnumberParts apart: cells past the closest gap that still count toward the pivot. Default 0.5.
bonesarrayBone names. Default every bone.
snapstringRound 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.

ParameterTypeDescription
name *stringBone 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.

ParameterTypeDescription
bone *string | nullBone name. null unbinds.
index *integerObject 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.

ParameterTypeDescription
pose *objectMap 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.

ParameterTypeDescription
name *stringUnique 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.

ParameterTypeDescription
bone *stringBone name
keys *arrayKeyframes. time is required. rotation is [x, y, z, w]. translation and scale are [x, y, z].
name *stringClip name

list_clips

Named clips and their bone keys.

remove_clip

Remove a clip. One undo step.

ParameterTypeDescription
name *stringClip 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.

ParameterTypeDescription
path *stringPNG file to write. Its folder is created.
acesbooleanACES filmic tonemap. Default true.
albedoPathstringAlso write the first-hit albedo of the main view as a PNG here.
aperturenumberLens aperture. Omit to keep the document setting.
atmosphericbooleanNishita sky. Omit to keep the document setting.
bouncesintegerMax bounces, 0..8. Default 4.
denoisebooleanEdge-aware filter before writing. Default true. Build with --features oidn for Open Image Denoise.
distancenumberMultiple of the fitted distance, greater than 0 and at most 100. Below 1 is closer. Default 1.
focusnumberFocus distance. Omit to keep the document setting.
glass-modestringOlder name of glassMode; still accepted.
glassModestringprobabilistic or absorption. Omit to keep the document setting.
gpubooleanTrace on the GPU (wgpu) instead of the CPU; an error when no adapter is available. Default false.
heightintegerPixels, 1..4096. Default 256, or from width and the model's shape.
marginnumberEmpty border on each side of the fitted box as a fraction of the frame, 0..0.45. Default 0.05.
normalPathstringAlso write the first-hit normal of the main view as a PNG here.
orthographicbooleanParallel rays, fitted to the box like perspective. Default false.
pitchnumberOrbit pitch in degrees, -90..90. 90 looks straight down. Omit to keep the framing angle (25).
poseobjectTemporary 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…
samplesintegerPath-trace samples, 1..8192. Default 16. The CPU tracer takes about a second per 16 samples at 256 x 256; gpu is far faster.
seedintegerSampling seed. Default 1.
showBonesbooleanDraw joint points and parent links on the PNG. Default false.
sky-intensitynumberOlder name of skyIntensity; still accepted.
skyIntensitynumberSky intensity. Omit to keep the document setting.
stochasticGibooleanStochastic area lights for the indirect bounces. Omit to keep the document setting.
sun-intensitynumberOlder name of sunIntensity; still accepted.
sunIntensitynumberSun intensity. Omit to keep the document setting.
targetWhat 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.
viewstringNamed 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.
viewsarrayExtra PNGs. The required path is still written with the top-level yaw and pitch. Each item is {yaw, pitch, path} or {view, path}.
widthintegerPixels, 1..4096, at most 4096 x 2048 in all. Default 256, or from height and the model's shape.
yawnumberOrbit 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).
zoomnumberMagnification 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.

ParameterTypeDescription
path *stringPNG file to write. Its folder is created.
backgroundstring | array#rrggbb, #rrggbbaa, or [r, g, b, a?] for pixels that hit no cell. Default transparent.
distancenumberMultiple of the fitted distance, greater than 0 and at most 100. Below 1 is closer. Default 1.
heightintegerPixels, 1..4096. Default 512, or from width, pixelsPerVoxel, and the model's shape.
marginnumberEmpty border on each side of the fitted box as a fraction of the frame, 0..0.45. Default 0.05.
orthographicbooleanParallel rays. Default true.
pitchnumberOrbit pitch in degrees, -90..90. 90 looks straight down. Default 25.
pixelsPerVoxelnumberOrthographic 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.
poseobjectTemporary 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…
showBonesbooleanDraw joint points and parent links on the PNG. Default false.
targetWhat 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.
viewstringNamed 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.
viewsarrayExtra PNGs with the same camera settings. Each item is {view, path} or {yaw, pitch, path}.
widthintegerPixels, 1..4096. Default 512, or from height, pixelsPerVoxel, and the model's shape.
yawnumberOrbit yaw in degrees. 0 puts the camera on +X, looking toward -X. A model facing -Y is face-on at yaw -90. Default 30.
zoomnumberMagnification 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…

ParameterTypeDescription
path *stringPNG file to write. Its folder is created.
antialiasboolean2x2 supersampling up to 2048x2048 output pixels. Default true.
backgroundstring | array#rrggbb, #rrggbbaa, or [r, g, b, a?]. Default the viewport grey #16181c; #00000000 is transparent.
columnsintegerContact sheet columns, 1..65. Default about square.
countsLabelbooleanWrite previewTriangles (the unmerged mesh drawn) and the export counts in the image's bottom-left corner, and in each contact sheet tile. Default false.
exportobject | booleanThe 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…
fovnumberVertical field of view in degrees for perspective, 10..120. Default 50, like the viewport; lower flattens a long model.
glbstringDraw 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…
heightintegerPixels, 1..4096. Default 1024; a contact sheet tile's, default 512.
inputsarrayContact 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.
isolatebooleanDraw only object. Default false.
labelsbooleanContact sheet: each tile's name and parameters under it. Default true.
lightingstring | objectA 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…
lightingPresetsobject | stringLighting 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…
marginnumberEmpty border on each side as a fraction of the image, 0..0.45. Default 0.06.
objectinteger | stringFrame 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.
orthographicbooleanParallel projection fitted tightly to the silhouette; replies pixelsPerVoxel. Default false (the viewport's 50 degree perspective).
overlayboolean | string | arrayDraw 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,…
overlayLabelsbooleanEach overlay marker's name beside it. Default true.
pitchnumberOrbit pitch in degrees, -90..90. 90 looks straight down. Default 25.
placementYawnumberDegrees: 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…
poseobjectTemporary 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.
presetstringNamed 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…
presetsobject | stringA 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…
referencestring | objectContact 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.
variantsarray | stringContact 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.
viewstringNamed 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.
widthintegerPixels, 1..4096. Default 1024; a contact sheet tile's, default 512.
yawnumberOrbit 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…

ParameterTypeDescription
forcebooleanReload 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.

ParameterTypeDescription
bonesbooleanDraw the skeleton overlay in the viewport. false hides it for a screenshot. Omit to keep it.
distancenumberMultiple of the framing distance, greater than 0 and at most 100. Needs frame. Default 1.
framebooleanCentre on every object at the framing distance first. Default true.
orthographicbooleanParallel projection in the edit viewport and the CPU trace. Omit to keep it.
pitchnumberOrbit pitch in degrees, -90..90. 90 looks straight down. Omit to keep the current pitch.
placementYawnumberDegrees: 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…
presetstringNamed 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…
presetsobject | stringA 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…
viewstringNamed 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.
yawnumberOrbit 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.

ParameterTypeDescription
pathstringOptional file to write. Its folder is created.

screenshot_viewport

PNG of the 3D viewport. Only when connected to a window.

ParameterTypeDescription
pathstringOptional 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.

ParameterTypeDescription
height *numberHeight in window points
width *numberWidth in window points
x *numberLeft edge, window points
y *numberTop edge, window points
pathstringOptional 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.

ParameterTypeDescription
x *numberX in window points, origin at the top-left of the client area
y *numberY 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…

ParameterTypeDescription
source *stringRhai source. Empty clears the script.
objectintegerObject index. Omit for the active object.

get_script

Script source, auto flag, and declared parameters.

ParameterTypeDescription
objectintegerObject index. Omit for the active object.

set_params

Set script parameters by name. One undo step. Does not run the script.

ParameterTypeDescription
values *objectMap 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…
objectintegerObject index. Omit for the active object.

list_params

Parameters from the last successful run of the object's script.

ParameterTypeDescription
objectintegerObject 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.

ParameterTypeDescription
objectintegerObject index. Omit for the active object.
timeoutSecondsnumberStop 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.

ParameterTypeDescription
path *stringWhere to write the .glb. Its folder is created.
aoRadiusintegerReach 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.
aoStrengthnumberBake 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…
aoTargetstringWhere 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…
bakeobject | booleanPaint 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…
colorAtlasbooleanMerge 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…
exportHiddenbooleanInclude hidden objects. Default false, which omits them.
mergebooleanGreedy-merge coplanar faces of one palette slot. Defaults to false.
replystringcompact (the default): the markers counted by kind, {"box": 22}. full: every marker with its local, world, and glTF place, as list_markers gives them.
splitObjectsbooleanOne mesh node per object, still sharing one skin, so a game can hide a part. Default false is a single mesh.
vertexColorsbooleanStore 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…

ParameterTypeDescription
dir *stringFolder for the .vox, .glb, and manifest files. It is created.
variants *array | string1 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…
aoRadiusintegerAs export_mesh, 0..8. Defaults to 3.
aoStrengthnumberAs export_mesh, 0..1. Defaults to 0, off.
aoTargetstringAs export_mesh. Defaults to auto.
bakeobject | booleanAs export_mesh. Defaults to off.
colorAtlasbooleanAs export_mesh. Defaults to false.
exportHiddenbooleanAs export_mesh. Defaults to false.
manifeststringManifest path. Defaults to dir/variants.json. Its folder is created.
mergebooleanAs export_mesh. Defaults to false.
replacebooleanWrite a fresh manifest with only these sets instead of merging into the existing one by name. Defaults to false.
replystringcompact (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…
splitObjectsbooleanAs export_mesh. Defaults to false.
timeoutSecondsnumberScript deadline per object and set, up to 3600. Defaults to 300.
vertexColorsbooleanAs export_mesh. Defaults to false.
voxbooleanWrite 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.

ParameterTypeDescription
models *arrayEach item is {path, source?, merge?, vertexColors?, exportHidden?, splitObjects?, colorAtlas?, aoStrength?, aoRadius?, aoTarget?, bake?}, with the export_mesh meanings. path ends in .glb. source, when…
replystringcompact (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…

ParameterTypeDescription
path *string.glb file to write. Its folder is created.
scene *object | stringThe 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,…
bakeobject | booleanThe export_mesh bake option, over the scene's own; distance is in scene units here. Defaults to occlusion alone.