Getting started
Start with a simple shape and preview its toolpath in Rhino. This exercise takes you through the core components before you connect your Duet robot directly.
Install and open the plugin
Follow Installation, then open Grasshopper and find the Lugworm tab. Its numbered groups follow the work from slicing to printing. The Component Map shows where each component fits.
1. Make your first toolpath
Use a Rhino document in millimetres for this example. Add the components below by searching for their full names, including Lugworm.
- Create a sample. Add Test Geometry and choose a cylinder. Connect its geometry output to
geoon Slice. - Slice it. Set
modeto0for planar layers and choose alayerHeight. Click Slice’s compute button, then connect a Panel toinfoand read the report. - Place the layers. Connect Slice’s
contourstocontourson Place. SetprintCenterto the point where you want the part’s bottom centre. - Choose a preview profile. Add Robot Definition and select
none. Connect its profile to therobotinputs on G-code Generator and Robot Simulation. This gives you a toolpath preview without an arm model. - Generate G-code. Connect Place’s
movedtocrvson G-code Generator. Match itslayerHeightto Slice and set the layerwidth. LeavesavePathempty for this preview. Click compute and readinfo. - Review the result. Connect Generator’s
gcodeto Robot Simulation. Movesimfrom0to1to inspect the extrusion and travel moves.
You should now see a placed, layered cylinder and be able to step through its toolpath. These settings are a preview exercise; choose your machine profile and calibrate material settings before printing.
2. Working with the components
- Compute buttons: Slice and G-code Generator run when you click compute. Recompute after changing their inputs, and read their
infooutputs. - Optional inputs: right-click a component to enable the input groups you need. Each component reference lists those groups.
- Layer trees: keep the branches from Slice through Place to Generator. For multiple objects, branches use
{object; layer}. Flattening removes that grouping. - Machine profiles: connect Robot Definition explicitly. An unwired Generator uses the laboratory SCARA frame, including mirrored X/Y axes.
Continue from here
Use Save G-code to write a reviewed file. The Workflows page shows the slicing and DoE workflows on the canvas. For individual inputs and outputs, open the component reference.