Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Scripting and the test bridge

Everything you do in Operandi is a command with a name and a line of arguments, such as tool.set poly.bevel on. Buttons, menus and keys run those lines, and so can you, from a script or another program.

There are three ways in:

Way inWhat it isWhere
Python scripts (preview)Python code that runs commands, asks questions and edits mesh dataPython scripting
FormsButtons and menu entries that run any command line, your scripts includedKits and extensions
The test bridgeLets another program drive Operandi over a local connection, using the Model Context ProtocolWindow > MCP Bridge

Because every way in runs the same commands, a script, a button and a click do exactly the same thing: the same checks, the same undo steps, the same refusals.

Find the command for something

Do it once by hand, then look in the Command History panel (at the bottom of the right column in the Model layout; drag the line above its command entry up to open it). Each step on its History tab shows the command line it ran.

In this section

  • Python scripting: turn it on, the Script Console, your first script, mesh data, animation, undo, and the limits of the preview.
  • Python reference: every function of the operandi module, every query, and the script commands. Made from Operandi’s own code.
  • Kits and extensions: putting scripts on menus and buttons, scenes made with kits, and what isn’t there yet.