r/openscad • • 1h ago

variable name as part of parameters in module call (..., varname1=n, varname2=n)

0 Upvotes

Hello,
Excuse my perhaps stupid question.
I have the following statement: module_abc(20, varname1=4, varname2=13);
What actual means the listing of (a variable name) as part of the parameter with the assignment of a value ?
e.g. varname1= and varname2=

And what are the implication I have to be aware of?
Is there perhaps somewhere a piece of documentation about it that I have missed?
Thanks for answering.


r/openscad • • 4h ago

how making a functional lid of a (TFT) housing

0 Upvotes

Hello,
I would like to get some feedback and perhaps some suggestion how I could create a good functioning (and easy to make) lid for a housing that should contain a 3.5"TFT display and a MCU development board.
Would be nice to hear how others have resolved that for their projects.

Thanks for sharing your thoughts.


r/openscad • • 20h ago

Navigating 3D Design Blind: My Experience with OpenSCAD

3 Upvotes

Hey folks,

I'm completely blind, and some of you might recognize my work from the disabled dragon and other projects I've created.

I've been getting a lot of questions about how I manage to design and print in 3D without any sight.

To help answer those questions, I've put together a video showcasing my process.

It would be great if you could take a look, share it around, and help spread the word about making 3D design and printing more accessible for everyone.

Thanks for your support!


r/openscad • • 23h ago

WIP: 3D-printable VSM base

Thumbnail gallery
1 Upvotes

I posted this in the VSM group, but thought some of you might also find it interesting.


r/openscad • • 1d ago

PythonSCAD v1.2.0 "Quadratum" released

Thumbnail reddit.com
0 Upvotes

r/openscad • • 2d ago

Learning OpenSCAD: designing painting accessories

Post image
21 Upvotes

Hi all;

I have been recently learning how to design my own things, and being from a programming background, I wanted something I could write a MCP server to use iteratively with Claude Code. I first my first design 3 days ago, and have been iterating - it’s a lot of fun. I wanted to post a bit about the journey over the relatively short period and hopefully encourage others to do the same. So below is my palette journey:

Version 1 was one flat file of hard-coded shapes. The wells were straight-sided cylinders spaced too far apart, the rim runes were too small to print well, and I'd never decided the overall size. So: curved, domed wells like an artist's palette (later steeper), a denser layout with straight rows, and 250 × 175 mm (85% of A4, because full A4 doesn't fit the 256 mm bed). I have a P1S - if I had a larger printer perhaps I would have gone to A4.

I then had to design for a 0.4mm nozzle as before I never really taken that into account:

Rune strokes were too thin and some overlapped. Now they're 1.4 mm (about 3 extrusion lines) with at least 0.8 mm gaps, checked by a small Python script written by Claude of course.
No overhangs: every feature is a vertical extrusion, a dome on a floor, or a bowl cut down from the top. Before I naively put in overhangs!
Test prints of raised vs engraved text: raised was clearly better, even though I desperately wanted to cut down on material.
The drybrush bay was wasted flat space. I designed a dense like a mandala: rope, plaits, interlaced loops and a triskele at varying heights, with hard vertical walls and soft half-ellipsoid domes. I thought this would be great for drybrushing over.

The issue then became that my poor MacBook air could not render anything! Exports in OpenSCAD 2021 (CGAL) took hours; the Nightly build with Manifold takes about 4 seconds. After all this, I had my first design! Which I printed, but now I was addicted!

I then designed the follow up palette, a Norse one. I did the following

Slab 12 → 10 mm, drybrush bay on a 2 mm floor, rim 12 → 9 mm, sparser background lattice.

The freed space went into bigger wells: 6 small + 12 medium, and one 112 × 51 mm trough instead of two dishes.

Slicer iterations: 204 g / 11h41m → 191.8 g / 11h11m → 189 g / 10h54m.

Lesson: most internal solid infill came from shells under the curved well walls, not the slab, so thinning the floor saved less than expected. Travel is about 2h40m (~24%), mostly from the many raised decorative islands.

After this, I had 2 palettes! I went onto design a water cup (linked but won’t bore you with more detail) as well as a brush holder (WIP)!

If you want to see or print them
Celtic Knotwork Paint & Drybrush Palette: https://makerworld.com/en/models/3637493-celtic-knotwork-miniature-paint-drybrush-palette
Celtic Knotwork Miniature Painting Water Cup: https://makerworld.com/en/models/3643562-celtic-knotwork-miniature-painting-water-cup#profileId-4179554
Norse Knotwork Paint & Drybrush Palette: https://makerworld.com/en/models/3649610-norse-knotwork-miniature-paint-drybrush-palette#profileId-4187030


r/openscad • • 3d ago

Parametric clip-free cable lanes in OpenSCAD (openGrid / Multiconnect / screws)

Thumbnail
gallery
21 Upvotes

I wrote Snakeway in OpenSCAD because I wanted under-desk cable lanes without clips or zip ties, and I needed the sizes to be parametric.

Cables snake between alternating hooks and stay put. You lay a cable beside a hook, slide it under, and the hook overlaps it so it can't fall out. Slide it back out when you want it free. The holders lock together with puzzle-style tabs.

The customizer is set up in 28 mm openGrid cells: width, length, one lane for thick cables (up to 9.5 mm) or two for thin ones (about 3.7–4.0 mm), an optional stacked-cable hook height, and the mount type — openConnect, Multiconnect, or none, with optional countersunk holes for 3.0 mm wood screws. There's also a snap-on cover. (Multiconnect needs a thicker plate, so the max cable in a 1-lane cell drops to 8.2 mm.) The .scad file is on the model page.

It prints without supports. I recommend PETG, 0.2 mm, 3 walls, 25% infill. The default profile is about 2.3 hours and 56 g on one plate.

The images are renders — I don't have a make photo up yet. It's a free model:

https://makerworld.com/en/models/3625038-snakeway-clip-free-under-desk-cable-lanes

Happy to talk through the OpenSCAD approach or the hook geometry if useful.


r/openscad • • 2d ago

Openscad shapes to code generator

0 Upvotes

Adding new feature to openscad library
parametric is future
one day bambu lab is going to charge points on people uploading scad files, to keep this opensource, i want to make a library where users can upload their basic models and others can customize it

I dont know how that will happen, but for the moment, i am adding my own codes manually and those shapes are customizable


r/openscad • • 4d ago

A box with a curved bottom

Post image
13 Upvotes

I attempted to create a type of box with a curved bottom using OpenSCAD; to achieve this, I used two vector drawings created in Inkscape. One drawing is applied along the X-axis, and the other along the Y-axis. Here is the code.

module SHAPE(){
linear_extrude(height=60,convexity=10){
import("curved-01.svg",center=true);}}

module CURVE(){
rotate([0,-90,0])
linear_extrude(height=160,convexity=10){
import("curved-02.svg",center=true);}}

module BOX(){
difference(){
SHAPE();
translate([80,0,-10])
CURVE();
translate([80,0,60])
CURVE();}}

module CURVBOX(){
minkowski(){
difference(){
scl=0.96;
BOX();
translate([1,0.2,4])
scale([scl-0.02,scl,1])
BOX();}
sphere(2,$fn=20);}
minkowski(){
translate([-60,19,30])
cube([24,0.7,25]);
sphere(1.5,$fn=20);}}

CURVBOX();

#OpenSCAD #FabLab #Maker #3D_design #3D_paramétrique #Atelier_3D


r/openscad • • 3d ago

Open scad web based shapes to code generator

2 Upvotes

I am still playing around this tool to make 3d model
quick bracket tutorial


r/openscad • • 3d ago

Openscad shapes builder and turn that into code with selected params

Thumbnail
gallery
0 Upvotes

Web based shapes to openscad code generator

So i have been tinkering around the basic shapes and for something small like a solar light bracket, user should be able to build a code and be able to share, so i am taking tinkercad sort of approach and building it with shapes and then select the params you wanna expose,

What this can be used for?
User can share their models on makerlab- parametric model maker for other people to edit and download models from bambu lab


r/openscad • • 4d ago

Claude Code + OpenSCAD is my new 3D modelling workflow

Thumbnail
gallery
0 Upvotes

I've been testing out a new workflow lately where I start doing all my 3D modeling with claude code, using OpenScad. I'm used to working in fusion 360, but since openscad stores every model as code, its really easy to store the models as code on Github, which hasn't been possible before for me.

The reason I stumbled into this workflow is because I was on a mission to 3d print a case for my coffee grinder. My grinder is a full metal body and it was damaging my stuff inside my backpack, and I needed a solid case for it.

I found this workflow to be really effective. There's a bunch of gotchas to it though where Claude is really bad at making replicas of real world objects, and it makes a lot of assumptions about measurements, which is not good when you're trying to make functional models. I learned this the hard way after a few failed 3d prints.

But I did find that Claude was really good at setting up the case that I created here for my coffee grinder. Once I had the model of the coffee grinder set up well and I thought it was 100% accurate, Sonnet 5.5 was able to generate a really good model for me of the case, and I was even able to add the tongue and groove-like click system which was always a pain to add in Fusion 360.

It's pretty wild that you can do this with Claude Code. I feel like now I can stay in my preferred workflow of using VS Code and GitHub with the Claude Code extension or using the Claude Code terminal while I do 3d modeling. I never thought this day would come.

I made a whole video showing this workflow if you're interested: https://youtu.be/1Gm2xxaxk2Y


r/openscad • • 5d ago

351 parametric OpenSCAD objects inside OrcaSlicer, with the .scad reachable if you want to edit it

4 Upvotes

I got tired of the OpenSCAD -> export STL -> import into slicer loop for small parametric parts, so I built a plugin that puts the library and editor in OrcaSlicer as a tab. It's my own project; the plugin is not a fork of OrcaSlicer.

What's in it now (v0.9.27):

  • 351 objects across 32 categories: Gridfinity, organisation, workshop, cases, fasteners, mounts, cable management, panels, basics. Each object exposes its parameters as sliders, fields, toggles or option pickers, with presets.
  • The library is mostly not mine: Gridfinity Rebuilt, rackstack, split-flap and threads-scad are vendored, pinned and permissively licensed, with attribution in the UI. The actual .scad sources ship with the plugin.
  • An OpenSCAD editor with syntax highlighting, line numbers and error-line marking. include <src/...> resolves to the bundled libs; you can put your own libraries on OPENSCADPATH and render them in place.
  • Live Three.js viewport (orbit/pan/zoom, wireframe, edges), STL/3MF export and Send to plate into the open OrcaSlicer plater.

Repo and install notes: https://github.com/yazdannl/orcad-plugin

I'd especially like to hear which categories are thin or which parameters are badly chosen. PRs for new .scad objects are straightforward: a file plus a parameter block


r/openscad • • 4d ago

Prompt → multi-part parametric CAD: We tested what Kybz engine produces when you ask for a full assembly (18-part controller as the test case)

Thumbnail
gallery
0 Upvotes

I ran this prompt through Kybz Parametric Studio, and honestly, I wasn’t expecting results like this at this stage.

A little context: I’m part of the small team building Kybz, focused on making CAD modeling and rapid prototyping more accessible.

This week, I decided to push the platform a little further by testing whether it could generate a complete, assembled 3D model with multiple moving parts.

I gave it a shot, and these were the results.
Still a work in progress, but I’m genuinely impressed with how far it’s come.

What do you think? I’d love to hear your honest feedback.

Explore Kybz: https://kybztech.com/gallery


r/openscad • • 5d ago

How to make a screw with BOSL2 with a 'knurled' head?

1 Upvotes

Hello,

based on the sample from the BOSL2 wiki

include <BOSL2/std.scad>
include <BOSL2/screws.scad>
shoulder_screw("iso",20,length=45,drive="none");

I want to similar create a screw but with a 'knurled' head.
Can I create this object with pure BOLS2 ?
Any suggestion is much appreciated.
TIA


r/openscad • • 5d ago

Handy OpenSCAD guide... and some more !

Post image
9 Upvotes

I invite you to browse a few pages of the book, available in French, English, or Spanish. If you have any comments or suggestions, I would be delighted to hear from you.

Best regards,
Roberto Hamm

Book preview:
French: https://robotix.ah-oui.org/scadbook-fra
English: https://robotix.ah-oui.org/scadbook-eng
Spanish: https://robotix.ah-oui.org/scadbook-spa


r/openscad • • 5d ago

I built an open-source CAD kernel in Zig + WASM (<1MB) combining B-Rep, CSG, and Implicit SDFs with zero-copy SharedArrayBuffer

0 Upvotes

Hey everyone — as a Linux user working on local browser-based design tools, I kept running into the wall where existing open-source CAD kernels either use purely polygonal CSG (OpenSCAD) or require 15+ MB WASM builds (OpenCASCADE) without native implicit field modeling.

I spent the last few months building OpenCAD from scratch in Zig and WebAssembly:

- Pure Math Core (<1 MB WASM): Every curve, surface, and field is an equation evaluated with forward-mode automatic differentiation (dual numbers) and interval arithmetic.

- 3-in-1 Representation: Combines constrained 2D sketches & SE(3) B-Rep sweeps, CSG booleans, and implicit SDF fields (like stress-driven gyroids) in one engine, exporting to STEP and STL.

- Zero-Copy Shared Memory: Uses a single `SharedArrayBuffer` between the Zig WASM kernel, Three.js, and external WASM extensions so simulation fields can drive geometry directly without file exports.

- Live Demo: https://hassaanmaqsood.github.io/opencad/

- GitHub Repo: https://github.com/hassaanmaqsood/opencad

It's still early (currently refining boolean seam triangles and B-Rep edge cases), and I'd love for you to try breaking it and let me know what you think!


r/openscad • • 7d ago

I wrote an OpenSCAD snowflake generator: each seed grows a different crystal (flat or slot-together 3D)

Post image
0 Upvotes

r/openscad • • 8d ago

I got real OpenSCAD running offline on the iPad – with sliders, an object editor and optional AI

0 Upvotes

Hi everyone,

I'm not a programmer, but I wanted to design and print parts without sitting at a computer. So I built ScriptSCAD – a free, open-source suite that runs entirely on the iPad (and iPhone) inside the Scriptable app.

What it does:

- Real OpenSCAD running locally as WebAssembly – offline, no account, no server
- Code editor with autocompletion, plus sliders for every parameter and an object editor (tap a part in 3D to move, rotate or resize it)
- Optional AI: say "make the wall 2 mm thicker" and it edits your .scad code. It runs through an Apple Shortcut with Apple Intelligence, the ChatGPT app or the Claude app – no API key needed
- BOSL2, MCAD and NopSCADlib built in, plus import of STL/OBJ/3MF/SVG/DXF
- Export to STL or 3MF with colors
- A separate slicer based on CuraEngine: about 300 printer profiles, layer preview, and upload to OctoPrint, Klipper (Moonraker) or PrusaLink

Everything stays as normal files in your iCloud Drive. No tracking, no subscription, GPL-3.0.

The slicer is still new – please check the layer preview before printing and stay near your printer for the first prints.

GitHub (install takes about 5 minutes):GitHub

I'd love feedback – especially bug reports, printer profiles that don't work, and ideas for what's missing.


r/openscad • • 9d ago

Texte sur un cylindre avec OpenSCAD

Post image
3 Upvotes

Comment placer un texte sur un cylindre, est une question qui se pose tôt ou tard, lorsque on fait de la modélisation 3D. La boucle "for" aligne les caractères du texte, l'un après l'autre.
rotate([0,0,a])
place les caractères autour d'un cylindre virtuel.
La commande "linear_exrude()" est primordiale car la commande "text()" de OpenSCAD, génère de caractères en 2D qu'il faut donc extruder pour leur donner du volume.

$fn =60;

module ROTASCRIPT(font,pas,r,ht,zp){

ln = len(font);
ch = 0;
for(i=[0:ln-1]) {
a = ch + i*pas;
rotate([0,0,a])
translate([r,0,zp])
rotate([90,0,90])
linear_extrude(height=ht,convexity=10)
text(
text=font[i],
size=8,
halign="center");}}

ROTASCRIPT("OpenSCAD",15,30,2,5);

Voici la signification des variables à l'appel
de notre script :

ROTASCRIPT(font,pas,r,ht,zp);

font : texte à afficher
pas : espacement angulaire
r : position radiale
ht : taille Y des caractères
zp : profondeur en Z

Pour plus d’informarion voir :
https://robotix.ah-oui.org/site/main.php?found=261113-text-rotation

#3D_text #ParametricDesign #OpenSCAD #Maker 3Dprint


r/openscad • • 10d ago

Parametric Spirograph Generator with Trace Preview

Thumbnail
gallery
75 Upvotes

This is a fully parametric, gear-driven spirograph generator. You choose the shape of the track, the type and size of the wheel, the number of teeth and the position of the pen holes.

free download: https://makerworld.com/en/models/3593114-parametric-spirograph-generator-with-trace-preview


r/openscad • • 10d ago

Les 1001 arbres de OpenSCAD

34 Upvotes

Fabuleux ! en quelques lignes seulement OpenSCAD permet de construire un arbre dont à chaque appel, la physionomie change grâce à l'instruction"rands" qui génère des valeurs aléatoires.

Puis une variable "h" qui se renouvelle à chaque niveau

translate([0,0,h])

et fait converger le départ des ramages chaque niveau.
Puis la variable "b" renouvelée à chaque niveau dans la boucle "for"

b=[0:120:240])

déploie les branches sur les axex X et Y de l'arbre.

Ci-dessous don les quelques lignes de code qui permettent d'obtenir ces arbres magnifiques.

Nous avons obtenu ce code grâce à une discussion très constructive avec ChatGTP.

fn = 12;

module FEUILLE() {
color("lightgreen")
scale([1,0.5,0.15])
sphere(r=6,$fn=16);}

module ARBRE(n,h,r) {
if(n>0) {
color("#d80")
cylinder(h=h,r1=r,r2=r*0.7);
translate([0,0,h])
rotate([0,0,rands(0,360,1)[0]])
for(b=[0:120:240])
rotate([0,0,b])
rotate([0,30,0])
ARBRE(n-1,h*0.7,r*0.7);
} else {
FEUILLE();}}

ARBRE(5,50,2);

La commande ARBRE(n,h,r) se définit ainsi :
n : nombre di niveaux des ramages
h : point de départ des faisceaux de ramage
r : épaisseur des branches

Pour plus d'info voir 🔥 https://robotix.ah-oui.org/site/main.php...

#OpenSCAD #Modélisation_3D #Makers #FabLab #Paramétrique_3D