Haven’t done this myself, but if I were to, I’d take a closer look at the Python svgwrite library (to create SVG vector graphics from text) and svg2gcode (to generate G-code from the SVG). That way you could generate a temporary G-code file and then load it with d.openGCodeFile(...).
Haven’t done this myself, but if I were to, I’d take a closer look at the Python svgwrite library (to create SVG vector graphics from text) and svg2gcode (to generate G-code from the SVG). That way you could generate a temporary G-code file and then load it with d.openGCodeFile(...).