On Tuesday, December 23, 2025 at 10:36:24 PM EST, Lee DeRaud via Discuss discuss@lists.openscad.org wrote:
The whole "just do it in python" thing seems to be turning into a meme. đ
Â
There appear to be multiple approaches to extending OS with python...
Yes, there have been.
Any suggestions for where best to start, assuming  someone (1) decently familiar with OS,
(2) relative beginner with python, and (3) working in a Windows environment (if that matters)?
I've been having good luck with:
and am especially grateful for it since persistent, mutable variables made possible my moving forward on:
https://github.com/WillAdams/gcodepreview
What sort of projects do you wish to do?
How do you wish to approach them?
Addressing what sort of manufacturing tool(s)?
William
--Â
Sphinx of black quartz, judge my vow.
https://designinto3d.com/
Ok, watched the video: where might âopenscad4.pyâ be found?
From: Sanjeev Prabhakar sprabhakar2006@gmail.com
Sent: Wednesday, December 24, 2025 7:58 AM
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: lee.deraud@roadrunner.com
Subject: Re: [OpenSCAD] Best starting point using Python with OpenSCAD?
I have been working on openscad with python for a few years now.
I use Jupyter Lab to write my python code and it is working well for me.
But simply writing openscad code in python is not very useful. You need to learn first to work with points list instead of openscad primitives.
I have written various examples for this approach and here is a small video for a starting point in case you are interested:
On Wed, 24 Dec 2025 at 09:06, Lee DeRaud via Discuss <discuss@lists.openscad.org mailto:discuss@lists.openscad.org > wrote:
The whole "just do it in python" thing seems to be turning into a meme. đ
There appear to be multiple approaches to extending OS with python...
Any suggestions for where best to start, assuming someone (1) decently familiar with OS,
(2) relative beginner with python, and (3) working in a Windows environment (if that matters)?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
It's mentioned in the video description
You can download it from here:
https://github.com/sprabhakar2006/openSCAD/blob/main/openscad4.py
You need to also install following libraries in python:
numpy, scipy, sympy, scikit-image
On Thu, 25 Dec, 2025, 12:56âŻam Lee DeRaud via Discuss, <
discuss@lists.openscad.org> wrote:
Ok, watched the video: where might âopenscad4.pyâ be found?
From: Sanjeev Prabhakar sprabhakar2006@gmail.com
Sent: Wednesday, December 24, 2025 7:58 AM
To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org
Cc: lee.deraud@roadrunner.com
Subject: Re: [OpenSCAD] Best starting point using Python with OpenSCAD?
I have been working on openscad with python for a few years now.
I use Jupyter Lab to write my python code and it is working well for me.
But simply writing openscad code in python is not very useful. You need to
learn first to work with points list instead of openscad primitives.
I have written various examples for this approach and here is a small
video for a starting point in case you are interested:
On Wed, 24 Dec 2025 at 09:06, Lee DeRaud via Discuss <
discuss@lists.openscad.org> wrote:
The whole "just do it in python" thing seems to be turning into a meme. đ
There appear to be multiple approaches to extending OS with python...
Any suggestions for where best to start, assuming someone (1) decently
familiar with OS,
(2) relative beginner with python, and (3) working in a Windows
environment (if that matters)?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Thanks.
Iâd swear I did a search on github for âopenscad4.pyâ and got no resultsâŚmaybe I really AM that lame. âš
From: Sanjeev Prabhakar sprabhakar2006@gmail.com
Sent: Wednesday, December 24, 2025 2:03 PM
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: Lee DeRaud lee.deraud@roadrunner.com
Subject: Re: [OpenSCAD] Re: Best starting point using Python with OpenSCAD?
It's mentioned in the video description
You can download it from here: https://github.com/sprabhakar2006/openSCAD/blob/main/openscad4.py
You need to also install following libraries in python:
numpy, scipy, sympy, scikit-image
On Thu, 25 Dec, 2025, 12:56âŻam Lee DeRaud via Discuss, <discuss@lists.openscad.org mailto:discuss@lists.openscad.org > wrote:
Ok, watched the video: where might âopenscad4.pyâ be found?
From: Sanjeev Prabhakar <sprabhakar2006@gmail.com mailto:sprabhakar2006@gmail.com >
Sent: Wednesday, December 24, 2025 7:58 AM
To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org mailto:discuss@lists.openscad.org >
Cc: lee.deraud@roadrunner.com mailto:lee.deraud@roadrunner.com
Subject: Re: [OpenSCAD] Best starting point using Python with OpenSCAD?
I have been working on openscad with python for a few years now.
I use Jupyter Lab to write my python code and it is working well for me.
But simply writing openscad code in python is not very useful. You need to learn first to work with points list instead of openscad primitives.
I have written various examples for this approach and here is a small video for a starting point in case you are interested:
On Wed, 24 Dec 2025 at 09:06, Lee DeRaud via Discuss <discuss@lists.openscad.org mailto:discuss@lists.openscad.org > wrote:
The whole "just do it in python" thing seems to be turning into a meme. đ
There appear to be multiple approaches to extending OS with python...
Any suggestions for where best to start, assuming someone (1) decently familiar with OS,
(2) relative beginner with python, and (3) working in a Windows environment (if that matters)?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
Oh, I have never tried searching for openscad4.py
You can download an examples file from here. Some of the definitions in the
index may be outdated, but the examples should be good:
On Thu, 25 Dec 2025 at 03:48, Lee DeRaud via Discuss <
discuss@lists.openscad.org> wrote:
Thanks.
Iâd swear I did a search on github for âopenscad4.pyâ and got no
resultsâŚmaybe I really AM that lame. âš
From: Sanjeev Prabhakar sprabhakar2006@gmail.com
Sent: Wednesday, December 24, 2025 2:03 PM
To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org
Cc: Lee DeRaud lee.deraud@roadrunner.com
Subject: Re: [OpenSCAD] Re: Best starting point using Python with
OpenSCAD?
It's mentioned in the video description
You can download it from here:
https://github.com/sprabhakar2006/openSCAD/blob/main/openscad4.py
You need to also install following libraries in python:
numpy, scipy, sympy, scikit-image
On Thu, 25 Dec, 2025, 12:56âŻam Lee DeRaud via Discuss, <
discuss@lists.openscad.org> wrote:
Ok, watched the video: where might âopenscad4.pyâ be found?
From: Sanjeev Prabhakar sprabhakar2006@gmail.com
Sent: Wednesday, December 24, 2025 7:58 AM
To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org
Cc: lee.deraud@roadrunner.com
Subject: Re: [OpenSCAD] Best starting point using Python with OpenSCAD?
I have been working on openscad with python for a few years now.
I use Jupyter Lab to write my python code and it is working well for me.
But simply writing openscad code in python is not very useful. You need to
learn first to work with points list instead of openscad primitives.
I have written various examples for this approach and here is a small
video for a starting point in case you are interested:
On Wed, 24 Dec 2025 at 09:06, Lee DeRaud via Discuss <
discuss@lists.openscad.org> wrote:
The whole "just do it in python" thing seems to be turning into a meme. đ
There appear to be multiple approaches to extending OS with python...
Any suggestions for where best to start, assuming someone (1) decently
familiar with OS,
(2) relative beginner with python, and (3) working in a Windows
environment (if that matters)?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Sanjeev:
"You need to learn first to work with points list instead of openscad
primitives."
You and I think very differently. From my perspective, the whole point
of using OpenSCAD (plus BOSL2) is to NOT have to deal with point lists.
Jon
On 12/24/2025 10:58 AM, Sanjeev Prabhakar via Discuss wrote:
I have been working on openscad with python for a few years now.
I use Jupyter Lab to write my python code and it is working well for me.
But simply writing openscad code in python is not very useful. You
need to learn first to work with points list instead of openscad
primitives.
I have written various examples for this approach and here is a small
video for a starting point in case you are interested:
https://youtu.be/kBshJ0CQCS0
https://urldefense.proofpoint.com/v2/url?u=https-3A__youtu.be_kBshJ0CQCS0&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=C-2LNFc4Vy8H1YpL56LCiAEPDkG3QYO27Ipyvyc0DrQ2c1gbJkY4C2Ac9G-rFCJu&s=GOkemD40ePPDy_8Nl3SyQh9B-HzV8PuteL-E8-MnCrU&e=
On Wed, 24 Dec 2025 at 09:06, Lee DeRaud via Discuss
discuss@lists.openscad.org wrote:
The whole "just do it in python" thing seems to be turning into a
meme. đ
There appear to be multiple approaches to extending OS with python...
Any suggestions for where best to start, assuming  someone (1)
decently familiar with OS,
(2) relative beginner with python, and (3) working in a Windows
environment (if that matters)?
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
Hi Jon,
I understand your point of view.
Bosl2 basically works on the points list afaik, you may not be aware about
it though.
Openscad as a software is wonderful with it's capabilities to render
objects and boolean operations especially.
Only problem i feel is with the language.
Python is far better and with a well written library probably you would not
even know that you are using python and may look very similar to openscad.
On Thu, 25 Dec, 2025, 7:41âŻam Jon Bondy, jon@jonbondy.com wrote:
Sanjeev:
"You need to learn first to work with points list instead of openscad
primitives."
You and I think very differently. From my perspective, the whole point of
using OpenSCAD (plus BOSL2) is to NOT have to deal with point lists.
Jon
On 12/24/2025 10:58 AM, Sanjeev Prabhakar via Discuss wrote:
I have been working on openscad with python for a few years now.
I use Jupyter Lab to write my python code and it is working well for me.
But simply writing openscad code in python is not very useful. You need to
learn first to work with points list instead of openscad primitives.
I have written various examples for this approach and here is a small
video for a starting point in case you are interested:
https://youtu.be/kBshJ0CQCS0
https://urldefense.proofpoint.com/v2/url?u=https-3A__youtu.be_kBshJ0CQCS0&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=C-2LNFc4Vy8H1YpL56LCiAEPDkG3QYO27Ipyvyc0DrQ2c1gbJkY4C2Ac9G-rFCJu&s=GOkemD40ePPDy_8Nl3SyQh9B-HzV8PuteL-E8-MnCrU&e=
On Wed, 24 Dec 2025 at 09:06, Lee DeRaud via Discuss <
discuss@lists.openscad.org> wrote:
The whole "just do it in python" thing seems to be turning into a meme.
đ
There appear to be multiple approaches to extending OS with python...
Any suggestions for where best to start, assuming someone (1) decently
familiar with OS,
(2) relative beginner with python, and (3) working in a Windows
environment (if that matters)?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_4330863540560679973_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
As it happens, most of my OS work lately involves adding shapes to imported STLs from scans
or chunks thereof: Iâm designing things like fender flares for plastic car models. Seemed like a
good idea at the time...not sure what the python stuff will bring to the table, but hey, learn
something new every day.
(My wife has described the last couple of weeks as âa scavenger hunt down a rabbit holeâ.
Itâs rapidly changing into multiple scavenger hunts down multiple rabbit holes. So it goes.)
From: Jon Bondy via Discuss discuss@lists.openscad.org
Sent: Wednesday, December 24, 2025 6:12 PM
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: lee.deraud@roadrunner.com; Sanjeev Prabhakar sprabhakar2006@gmail.com; Jon Bondy jon@jonbondy.com
Subject: [OpenSCAD] Re: Best starting point using Python with OpenSCAD?
Sanjeev:
"You need to learn first to work with points list instead of openscad primitives."
You and I think very differently. From my perspective, the whole point of using OpenSCAD (plus BOSL2) is to NOT have to deal with point lists.
Jon
On 12/24/2025 10:58 AM, Sanjeev Prabhakar via Discuss wrote:
I have been working on openscad with python for a few years now.
I use Jupyter Lab to write my python code and it is working well for me.
But simply writing openscad code in python is not very useful. You need to learn first to work with points list instead of openscad primitives.
I have written various examples for this approach and here is a small video for a starting point in case you are interested:
https://youtu.be/kBshJ0CQCS0 https://urldefense.proofpoint.com/v2/url?u=https-3A__youtu.be_kBshJ0CQCS0&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=C-2LNFc4Vy8H1YpL56LCiAEPDkG3QYO27Ipyvyc0DrQ2c1gbJkY4C2Ac9G-rFCJu&s=GOkemD40ePPDy_8Nl3SyQh9B-HzV8PuteL-E8-MnCrU&e=
On Wed, 24 Dec 2025 at 09:06, Lee DeRaud via Discuss <discuss@lists.openscad.org mailto:discuss@lists.openscad.org > wrote:
The whole "just do it in python" thing seems to be turning into a meme. đ
There appear to be multiple approaches to extending OS with python...
Any suggestions for where best to start, assuming someone (1) decently familiar with OS,
(2) relative beginner with python, and (3) working in a Windows environment (if that matters)?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
Virus-free. http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient www.avg.com
On Wednesday, December 24, 2025 at 09:39:16 PM EST, Lee DeRaud via Discuss discuss@lists.openscad.org wrote:
As it happens, most of my OS work lately involves adding shapes to imported STLs from scans
or chunks thereof: Iâm designing things like fender flares for plastic car models. Seemed like a
good idea at the time...not sure what the python stuff will bring to the table, but hey, learn
something new every day.(My wife has described the last couple of weeks as âa scavenger hunt down a rabbit holeâ.
Itâs rapidly changing into multiple scavenger hunts down multiple rabbit holes. So it goes.)
Recently on HackerNews, I had a bit of a discussion where one user posted:
One annoying thing is that the default way of writing programs in OpenSCAD uses 'modules',Â
which are a bit limited compared to functions (you can't store them as values to to functionsÂ
or other modules). I worked around that by writing a module that interprets arrays (think S-expressions)Â
that representing the shape, and then just build up that S-expression-like thing with functions and whatever.
which resulted in:
An example of an OpenSCAD design written this way: https://github.com/TOGoS/OpenSCADDesigns/blob/master/2023/experimental/Threads2.scad
I wrote about the approach a little bit in this Reddit post:Â https://www.reddit.com/r/openscad/comments/186b54r/interpreter_pattern_to_work_around_lack_of/
The interpreter itself is just a single module:Â https://github.com/TOGoS/OpenSCADDesigns/blob/master/2023/lib/TOGMod1.scad
which brings us back to OpenSCAD and while another hole, maybe is one worth looking into?
William
That's "just" vnf https://github.com/BelfrySCAD/BOSL2/wiki/vnf.scad using lists instead of functions.
On December 24, 2025 6:47:12 PM PST, "William F. Adams via Discuss" discuss@lists.openscad.org wrote:
On Wednesday, December 24, 2025 at 09:39:16 PM EST, Lee DeRaud via Discuss discuss@lists.openscad.org wrote:
As it happens, most of my OS work lately involves adding shapes to imported STLs from scans
or chunks thereof: Iâm designing things like fender flares for plastic car models. Seemed like a
good idea at the time...not sure what the python stuff will bring to the table, but hey, learn
something new every day.(My wife has described the last couple of weeks as âa scavenger hunt down a rabbit holeâ.
Itâs rapidly changing into multiple scavenger hunts down multiple rabbit holes. So it goes.)
Recently on HackerNews, I had a bit of a discussion where one user posted:
One annoying thing is that the default way of writing programs in OpenSCAD uses 'modules',Â
which are a bit limited compared to functions (you can't store them as values to to functionsÂ
or other modules). I worked around that by writing a module that interprets arrays (think S-expressions)Â
that representing the shape, and then just build up that S-expression-like thing with functions and whatever.
which resulted in:
An example of an OpenSCAD design written this way: https://github.com/TOGoS/OpenSCADDesigns/blob/master/2023/experimental/Threads2.scad
I wrote about the approach a little bit in this Reddit post:Â https://www.reddit.com/r/openscad/comments/186b54r/interpreter_pattern_to_work_around_lack_of/
The interpreter itself is just a single module:Â https://github.com/TOGoS/OpenSCADDesigns/blob/master/2023/lib/TOGMod1.scad
which brings us back to OpenSCAD and while another hole, maybe is one worth looking into?
William
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org