Search, macros, scripts and plugins
Every command is one search away, and the same commands can be recorded as a macro, written as a command script, or built into plugins of your own in Luau.
Search
Ctrl+K, / or the top bar's Search icon opens Search: a field over a list of every command the menus, panels, keys and pies run, one row per brush, panel, section, view, mask command, remesh size and starting shape, plus every setting by its caption and each Help tab. Type part of a name, or the word another app uses for it (dynamesh, zremesher, subtool, freeze, polygroup, bpr...). While you type, the Library's alphas, materials, meshes and environments are listed too.

- Each row shows its icon, its shortcut and a tick when it is on. One that cannot run now is dimmed, and its help line starts "Not now".
- ↑ and ↓ pick a row; Enter or a tap runs it and closes Search; Escape, Android's Back or a press outside closes it.
- A setting opens Settings on that setting alone; a panel's section ("Object panel: Remesh") opens its panel on that section, with Show all beside it.
- With nothing typed, the list starts with your starred rows, then the last eight you ran.
- Four buttons under the help line act on the picked row, whether it can run now or not: Show where it lives, Star (up to 16), Put in a pie and Assign key.
On a tablet the keyboard comes up with Search, and every gesture can be set to open it (Settings › Touch).
Macros
Record macro (in the Macros panel or Search, or on a key you give it) starts keeping the commands you run by any route: a key, a button, a menu, Search or a pie. A red "Recording macro" chip at the top of the view counts them and has Stop. Stop asks for a name ("Macro 1" when left empty): Save keeps it; Discard or Escape drops it.
- A switch is kept as the state it left ("wireframe on"), so running the macro sets it rather than flips it, and a command that reads values from its panel (Smooth all, Rebuild, Mirror and weld, Quad remesh, Extract and others) keeps those values too.
- Strokes, turns of the view, gizmo and slider drags, clicks on objects, undo and redo, the view commands, opening panels, Search and the pies are not commands and are not recorded. Nor are commands that ask for a file, a typed name or a pick on screen (open, save, import, export, screenshot, rename, New scene); the note counts what was left out.
- Undo while recording takes the newest command out again.
A saved macro becomes a command of its own, "Macro: Zebra" in Search and Customise › Keys, which can take a key, go on a pie or a gesture, or be starred. Running it acts on whatever is selected, each command its own undo step, as if done by hand; a command that does nothing stops it with a note naming it. Up to 16 macros are kept.
The Macros panel
Window › Macros... (or Search) opens the Macros panel: Record macro and Run script... at its top, then each macro by name with its keys and gestures, and its Run, Key, Rename and Delete (tap the bin twice). The note at its foot names the folder the macros are kept in. Each macro is a plain command script, macro-01.cmd and on, in the macros folder beside the settings, whose first line names it; you can edit it in any text editor, and it is read again at the next start.
Command scripts
A command script is a text file (.cmd or .txt) with one command a line, the same commands Search lists, written in lower case with _ between words. # starts a comment, and "quoted text" is one word.
# Even out the selected sculpt, then add a level
set smooth_steps 2
smooth_all
remesh_to 500000
subdivide
wireframe on
- A command takes its choice by name:
brush clay,mask invert,view_axis front,remesh_to 500000. A switch takesonoroff(without either it flips). set NAME VALUEsets a setting under its name in the settings file (set symmetry xz,set paint_color 0.2 0.4 0.9), or a value a command reads (set smooth_steps 3,set rebuild_even 200000beforerebuild).select Nselects the Nth object down the Scene panel's list.- Verbs do what a tool or panel does with more than one choice:
move X Y Z,rotate X Y Z,scale S,slice x,knife x,hide x,mask_rect L T R B,layer N STRENGTH,alpha NAME,falloff soft,focal N,metal gold,smart_material mossy_stone,reference FILE,environment FILE, and many more.
Run script... (Window › Macros..., or Search) picks a script with the system's file dialog and runs it on what is selected, as a macro runs. The whole file is checked first: a file with an unknown name or a value that does not fit runs none of it and says which line ("Cannot run bevel.cmd: bevel.cmd:2: no command is named ..."). While it runs, a line that does nothing stops it with a note, keeping what ran before.
Commands that ask for a file, a typed name or a pick on screen, and Record macro, Run macro and Run script themselves, are not for scripts, so no script starts another.
Plugins
On Windows and Linux, a .luau file in the plugins folder beside the settings adds commands written in Luau, the typed Lua made for running code you do not fully trust. The app reads the folder at start, in file-name order, and again with Reload plugins (Window › Macros..., or Search). Plugins are not on the iPad or Android, whose stores do not allow code that was not reviewed.
sculpt.command{
name = "Smooth and subdivide",
help = "Smooths the selected object twice, then adds a level.",
run = function()
sculpt.run("set smooth_steps 2; set smooth_strength 0.5; smooth_all")
local at = sculpt.selected()
if at and sculpt.objects()[at].vertices < 1000000 then
sculpt.run("subdivide")
end
end,
}
| Call | Where | Does |
|---|---|---|
sculpt.command{name, help, run} | Top level only | Registers a command: name up to 48 bytes, unique in its file; help up to 200 bytes; run a function |
sculpt.run(text) | In a run only | Runs command script statements now, each its own undo step. A statement that does nothing raises an error naming its line, keeping the steps before it |
sculpt.objects() | Anywhere | A list of {name, vertices, triangles, selected, shown}, one an object, in the scene's order |
sculpt.selected() | Anywhere | The selected object's number from 1, or nil |
sculpt.get(key) | Anywhere | A setting's value as text |
sculpt.note(text) | In a run only | Shows a note |
print(...) | Anywhere | A line the Macros panel shows under the plugin's file |
Each command is listed in Search, Customise › Keys and the Macros panel as "Plugin: name", and like a macro it can take a key (Ctrl+Alt+click its Run button), a pie slot or a star; the key stays with it when other plugins come and go. A finished run says "Ran plugin name: N steps"; one that stopped says where and why.
Each plugin runs sandboxed in its own space: no files, processes, network or clock, nothing to load code with, and random numbers that start the same every run. It can only do what commands do. A plugin that runs too long or takes more than 64 MB is stopped, and one that fails to load shows its error under its file in the Macros panel while the others load as usual.