V3 Feature Series (69 of 69)
Add Object · Experimental

Script for Pen Plotters

Script in 3DPlotter V3 (Add Object → Experimental): Write a few lines of maths and plot the curve it describes. Try in Studio.

3DPlotter Studio showing the Script feature on the canvas with its settings panel

Write a few lines of maths and plot the curve it describes with Script, all in your browser. This is Feature 69 of 69 in the 3DPlotter V3 series.

How to use Script

  1. Open Studio → Add Object → Experimental → Script
  2. A live Script element is added to the active layer
  3. Tune parameters in the element card in the right sidebar (live preview on the canvas)
  4. Export plot-ready G-code when satisfied

Menu path: Add Object → Experimental → Script

What it does

Script plots a parametric curve from two expressions, x and y, as t sweeps a range. `i`, `k` and `s` number the copies. The default is a three-petal rose around the middle of the board.

What I set up in the demo

  • Add Object → Script: a three-petal rose
  • Change the number inside cos from 3 to 5, in both x and y, for a five-petal rose
  • Change it to 7 for seven petals
  • Multiply the radius by (0.6 + 0.4 * cos(2 * t)) for petals of different lengths
  • Rename, export G-code, and save the board

Tips for clean plots

  • The curve is centred at 90, 90 with a radius of 55, which stays inside the reachable area on an A1 Mini.
  • Raise Detail for smoother curves.

Key controls

  • t from: 0 (-100-100 step 0.1)
  • t to: 6.28 (-100-100 step 0.1)
  • Detail: 900 (8-8000 step 8)
  • Copies: 1 (1-200 step 1)
  • Copy Step (s): 0.1 (-5-5 step 0.01)

Tune t from, t to, detail, copies, and copy step (s) in the right sidebar. Open Studio to see every control.

Shuffle (in the element card) re-rolls: tEnd, copies, copyStep.

What I plot with Script

  • Pen-plotter art on Bambu Lab, Prusa, Creality, and other pen-holder setups
  • Layered linework exported as G-code with pen-up travel
  • Combined with other V3 objects and modifiers in the same document

Frequently asked questions

What maths can I use?

Standard functions such as sin, cos and arithmetic, with t as the variable.

How do I draw several copies?

Use the Copies setting and the i, k and s variables in your expressions.

Why centre at 90, 90?

That is the middle of the 180 mm bed.

Try Script

Open 3DPlotter Studio, follow the steps above, and export a test plot. Lifetime V3 access is €29.90. Creator Bundle (€39.90) adds Map to Pen Plot, String Art, Wax Seal, and 3D Model to SVG.

More tools: Feature hub · V3 launch

Topics

Script pen plotterScript 3DPlotter3DPlotter ScriptExperimental pen plottingpen plotter softwareBambu Lab pen plotter3D printer pen plottingplotter G-code generator

Related in Experimental

Explore every 3DPlotter tool

One feature every other day: objects, modifiers, generators, and more.