Getting started
Install the plugin, then open a .scad file in a workspace.
Requirements
- Paseo 0.13 or later.
- Plugins enabled on the daemon: Settings → Plugins → Enable plugins, or
pluginsEnabled: truein the daemon'sconfig.json. - Optional: OpenSCAD on the daemon machine (
openscadon PATH, or the Flathub apporg.openscad.OpenSCAD). Without it, the built-in WebAssembly engine is used, which is slower on large models.
Plugins are trusted, unsandboxed code. The server part of this plugin reads files in the workspace folder and runs
openscad on the daemon machine.1. Install the plugin
paseo plugin install https://github.com/lerenn/paseo-scad-viewer.git
Check that paseo plugin ls shows scad-viewer as running. To develop it, install from a local checkout instead (not from a Paseo worktree, which can be archived):
git clone https://github.com/lerenn/paseo-scad-viewer
cd paseo-scad-viewer && npm ci && npm run build
paseo plugin install "$PWD"
paseo plugin reload scad-viewer
2. Open a model
- Choose SCAD in the + menu of a workspace, then pick a file from the list.
- Or open a
.scadfile from the file explorer. - Or run Open SCAD models from the Command Center.
3. Use the toolbar
- Preview draws the model quickly. Render computes one merged solid and can take much longer on large models.
- Variables with a choice list appear as pickers. Choosing a value renders again with that value.
- The line under the toolbar shows the triangle count, the time taken and the engine used. A bar and the elapsed time show while OpenSCAD works.
The view is read-only and the plugin never writes files. Edit the file with your editor or an agent and the view updates within about a second of the change.