SketchCraft

Plugins

Plugins add commands and tools to SketchCraft: the ones built in, ones to download, and how to write your own. They run in a sandbox, and you can see and switch off what each one may reach.

A plugin is a small JavaScript file (SketchUp Ruby extensions that build things run too), and every one you have is under File › Plugins.

Built in

These come with SketchCraft. There’s nothing to install.

Plugin What it does
Map region (new in 0.3.13) A real place from OpenStreetMap: drag a map under a square up to 1 km across and get the buildings at their heights, the roads, paths, water and parks, on your model’s terrain when it has a location. How it works.
Cut list Every board to cut, grouped by size and material, with board feet and how many sheets and boards to buy. Its Cut plan… lays the parts out on stock.
Shelf unit A bookcase from a few sizes, every board its own group, ready for the cut list.
Stud wall A framing tool: click where a wall starts and ends, and get the plates and studs at your spacing, every board its own group, ready for the cut list.

The Map region plugin: a map of Midtown Manhattan with the square to build

To download

Download a .zip, then in SketchCraft open File › Plugins › Manage plugins… and click Install from file…. SketchCraft shows you what the plugin is, its files, a fingerprint and the sites it downloads from (if any) before anything is installed.

Plugin What it does Reaches
Board feet Totals the board feet of the picked boards (each a group or component), or of the whole model, with a line per board you can copy or save as CSV. Nothing beyond your model board-feet.zip
Plugin starter A small plugin to copy and change: a form that builds a box, a result window, and a tool that places a post where you click. Every part is commented. Nothing beyond your model plugin-starter.zip

The source of each is on GitHub. Made a plugin others could use? Tell us and we’ll list it here.

What a plugin can and can’t do

Every plugin runs in a sandbox, a fresh one each time:

  • It can draw, edit and inspect your model, and everything it changes is one Undo.
  • It can’t read or write your files. When it needs one (a picture, an animation), it shows a form with a Choose file button, and gets only the file you pick, never where it is.
  • It can’t reach the internet, except the sites it names, which SketchCraft shows you when you install it. SketchCraft does those downloads itself and refuses any other address. Manage plugins… has a switch beside each one to turn its network off.
  • It can’t run other programs, and a run that takes over a minute is stopped.

More on how plugins are kept in their sandbox, and the plugins guide.

Write your own

A plugin is a folder with two files, plugin.json (its name and commands) and main.js. Start from the Plugin starter, and see Writing a SketchCraft plugin for everything a plugin can do: forms (with lengths, choices, a file, a spot on a map), result tables, tools that follow the mouse, and downloads from the sites it names.