discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

PythonSCAD rocks!

GS
Guenther Sohler
Mon, May 12, 2025 8:57 AM

Thanks, Torsten,

Not wanting to "pollute" the OpenSCAD mailing list much further with
topics  which bother users which don't like pythr, just some minimal set of
required information.

  • OpenSCAD agreed to get python language support
  • So far only works when self-compiled (on MacOS), or AppImage or FlatPak
  • missing resources/time for OpenSCAD to progress within "reasonable time"
  • PythonSCAD is a spinoff from openscad which offers latest development
    /features + installers at the cost of test coverage. It's a superset of
    openscad and shall exist, until openscad is able to merge most of the
    useful features/functionality. just search for it on google.
  • Please bear in mind that even pythonscad has issues with the MAC
    installer. so best option for mac  might actually be: compile it from source

Torsten please feel free to correct my view

Torsten, no need to greatly advertise PythonSCAD in your web page, just
minimalistic temporary information for guys which are interested to
code their models in python and not yet working as expected.)

On Mon, May 12, 2025 at 10:36 AM Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

On 12.05.25 10:29, Peter Kriens via Discuss wrote:

I am running the snapshot on MacOS:

Quoting myself for the official OpenSCAD nightly build:

Status:

  • AppImage: Works for me 🙂, may have issues on some distros
  • Flatpak: should work wherever the flatpak itself works
  • Snap: nope, not working yet, all tries so far failed
  • Distro Packages: untested, probably needs some minor changes
  • Windows: nope, no Python yet
  • MacOS: nope, no Python yet

Sorry, I don't have the energy to explain the story again,
I'll leave that to Guenter.

I suppose there should be a web page explaining this, I
don't have enough spare time to do all that.

ciao,
Torsten.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks, Torsten, Not wanting to "pollute" the OpenSCAD mailing list much further with topics which bother users which don't like pythr, just some minimal set of required information. * OpenSCAD agreed to get python language support * So far only works when self-compiled (on MacOS), or AppImage or FlatPak * missing resources/time for OpenSCAD to progress within "reasonable time" * PythonSCAD is a spinoff from openscad which offers latest development /features + installers at the cost of test coverage. It's a superset of openscad and shall exist, until openscad is able to merge most of the useful features/functionality. just search for it on google. * Please bear in mind that even pythonscad has issues with the MAC installer. so best option for mac might actually be: compile it from source Torsten please feel free to correct my view Torsten, no need to greatly advertise PythonSCAD in your web page, just minimalistic temporary information for guys which are interested to code their models in python and not yet working as expected.) On Mon, May 12, 2025 at 10:36 AM Torsten Paul via Discuss < discuss@lists.openscad.org> wrote: > On 12.05.25 10:29, Peter Kriens via Discuss wrote: > > I am running the snapshot on MacOS: > > Quoting myself for the official OpenSCAD nightly build: > > Status: > - AppImage: Works for me 🙂, may have issues on some distros > - Flatpak: *should* work wherever the flatpak itself works > - Snap: nope, not working yet, all tries so far failed > - Distro Packages: untested, probably needs some minor changes > - Windows: nope, no Python yet > - MacOS: nope, no Python yet > > Sorry, I don't have the energy to explain the story again, > I'll leave that to Guenter. > > I suppose there should be a web page explaining this, I > don't have enough spare time to do all that. > > ciao, > Torsten. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
WF
William F. Adams
Mon, May 12, 2025 12:21 PM

On Monday, May 12, 2025 at 03:07:28 AM EDT, Karl Exler via Discuss discuss@lists.openscad.org wrote:

ähmm.. for all of us, who are not Prgrammers and who are happy to have with OpenScad a fine modelling software..... 
has all this Phyton "tamtam" any relevance for us ?

It shows an alternate way of working, and has a lot of potential.

For at least a bit, I'd like to urge folks to just accept that there are some folks around who are interested in this way of working, and hit the delete key --- cue the old proverb about the fasces --- the delete key is always available, or one could filter out any messages which include "openscad" and "python" (there are a lot of e-mails which I delete, e.g., those regarding the BOSL library).

On 12.05.25 09:07, Karl Exler via Discuss wrote:

William very much highlighted the point why I'm supporting this
even though I'm likely to continue using OpenSCAD scripts for my
own models:

Much appreciated!

On Monday, May 12, 2025 at 04:04:36 AM EDT, John David via Discuss discuss@lists.openscad.org wrote:

I do not have a "python" tab, and saving/running via a .py file is not working.  I'll look at compiling up a newer version.  
Is there a particular branch or forked repository I need to work with?

I think the easiest thing to do would be to just use the instructions from: https://pythonscad.org/downloads.php

            git clone https://github.com/pythonscad/pythonscad.git
            cd pythonscad
            git submodule update --init --recursive
            sudo ./scripts/uni-get-dependencies.sh
            # make sure to get cryptopp and python dev packages installed, additionally
            mkdir build
            cd build
            cmake -DEXPERIMENTAL=1 -DENABLE_PYTHON=1 -DENABLE_LIBFIVE=1 ..
            make
            sudo make install

that should afford one PythonSCAD in addition to OpenSCAD and allow one to switch back and forth as desired.

I did add colours to:

https://github.com/WillAdams/gcodepreview/blob/main/gcpdxf.py

if there's something else you need on that, let me know and I'll look into it with you. I'm finishing up a joinery module and should be pushing up a new version presently.

William

-- 
https://designinto3d.com/
Sphinx of black quartz, judge my vow.

On Monday, May 12, 2025 at 03:07:28 AM EDT, Karl Exler via Discuss <discuss@lists.openscad.org> wrote: >ähmm.. for all of us, who are not Prgrammers and who are happy to have with OpenScad a fine modelling software.....  >has all this Phyton "tamtam" any relevance for us ? It shows an alternate way of working, and has a lot of potential. For at least a bit, I'd like to urge folks to just accept that there are some folks around who are interested in this way of working, and hit the delete key --- cue the old proverb about the fasces --- the delete key is always available, or one could filter out any messages which include "openscad" and "python" (there are a lot of e-mails which I delete, e.g., those regarding the BOSL library). On 12.05.25 09:07, Karl Exler via Discuss wrote: >William very much highlighted the point why I'm supporting this >even though I'm likely to continue using OpenSCAD scripts for my >own models: Much appreciated! On Monday, May 12, 2025 at 04:04:36 AM EDT, John David via Discuss <discuss@lists.openscad.org> wrote: >I do not have a "python" tab, and saving/running via a .py file is not working.  I'll look at compiling up a newer version.   >Is there a particular branch or forked repository I need to work with? I think the easiest thing to do would be to just use the instructions from: https://pythonscad.org/downloads.php             git clone https://github.com/pythonscad/pythonscad.git             cd pythonscad             git submodule update --init --recursive             sudo ./scripts/uni-get-dependencies.sh             # make sure to get cryptopp and python dev packages installed, additionally             mkdir build             cd build             cmake -DEXPERIMENTAL=1 -DENABLE_PYTHON=1 -DENABLE_LIBFIVE=1 ..             make             sudo make install that should afford one PythonSCAD in addition to OpenSCAD and allow one to switch back and forth as desired. I did add colours to: https://github.com/WillAdams/gcodepreview/blob/main/gcpdxf.py if there's something else you need on that, let me know and I'll look into it with you. I'm finishing up a joinery module and should be pushing up a new version presently. William --  https://designinto3d.com/ Sphinx of black quartz, judge my vow.
ER
edmund ronald
Mon, May 12, 2025 12:38 PM

My concern here is of course only from the end-user pov, that in my very
limited experience OpenSCAD has always installed flawlessly by drag and
drop on the Mac and acted in a boring and predictable fashion. Python on
the other hand seems to be very much into x.y.z version numbers, pip,
conda, uv, requirements and version conflict hell; I don’t call that a good
drag and drop experience. And I really dont find that my python software
packages eg. Pytorch and minions etc work exactly the same from version to
version. I would hate to see a novel render from an old file.

On Sunday, May 11, 2025, Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

On 11.05.25 22:39, edmund ronald via Discuss wrote:

A complete Python seems completely incompatible with the idea of OpenScad
as a drop-in software package.

Why? What problem is there?

What does drop-in software package mean here? OpenSCAD is just
a single app, so what would it replace?

I would urge the designers and maintainers of OpenScad to separate the

ideas of Python scripting/syntax support and complete Python support.

As the language goes, there is only full support. The
Python in OpenSCAD is just the official CPython not
some copy or partial re-implementation.

The discussion is "only" about using external packages
from pypi.org (e.g. things normally installed via pip or
some other package manager). Is that needed, and what are
the options to do so easily.

ciao,
Torsten.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

My concern here is of course only from the end-user pov, that in my very limited experience OpenSCAD has always installed flawlessly by drag and drop on the Mac and acted in a boring and predictable fashion. Python on the other hand seems to be very much into x.y.z version numbers, pip, conda, uv, requirements and version conflict hell; I don’t call that a good drag and drop experience. And I really dont find that my python software packages eg. Pytorch and minions etc work exactly the same from version to version. I would hate to see a novel render from an old file. On Sunday, May 11, 2025, Torsten Paul via Discuss < discuss@lists.openscad.org> wrote: > On 11.05.25 22:39, edmund ronald via Discuss wrote: > >> A complete Python seems completely incompatible with the idea of OpenScad >> as a drop-in software package. >> > > Why? What problem is there? > > What does drop-in software package mean here? OpenSCAD is just > a single app, so what would it replace? > > I would urge the designers and maintainers of OpenScad to separate the >> ideas of Python scripting/syntax support and complete Python support. >> > > As the language goes, there is only *full* support. The > Python in OpenSCAD *is* just the official CPython not > some copy or partial re-implementation. > > The discussion is "only" about using external packages > from pypi.org (e.g. things normally installed via pip or > some other package manager). Is that needed, and what are > the options to do so easily. > > ciao, > Torsten. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JD
John David
Mon, May 12, 2025 12:53 PM

Just a note for everyone.  I was able to get this built on Linux using the
instructions from https://pythonscad.org/downloads.php but I also needed to
install libfive before it would run.  I was able to reproduce a small
example from https://imgur.com/a/gu3xmms, however, some of the polygons
in the spirograph loops were filled with green when I asked it to Render.
Note, it showed nothing during preview.  Thought folks might find this
useful.  Let me know if you need a proper bug report.

On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss <
discuss@lists.openscad.org> wrote:

I am running the snapshot on MacOS:

[image: PastedGraphic-1.png]

I can neither see GUI: Preferences->Features->Python-Engine nor can I
start the command line with the options CLI: --enable=python-engine --trust-python. I assume the CLI on Mac is in /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD

Do I need to download another snapshot? I tried to find a landing page for
getting started with Openscad python but I am a bit confused.

Kind regards,

Peter Kriens

On 12 May 2025, at 10:07, Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

On 12.05.25 10:04, John David via Discuss wrote:

I only have Linux machines.  So the Win* install will not be so useful.
I do not have a "python" tab, and saving/running via a .py file is not
working.  I'll look at compiling up a newer version.  Is there a particular
branch or forked repository I need to work with?

For OpenSCAD master branch, you need to enable Python both on
compile time:

-DENABLE_PYTHON=ON

and on runtime:

CLI: --enable=python-engine --trust-python

GUI: Preferences->Features->Python-Engine

ciao,
Torsten.


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

Just a note for everyone. I was able to get this built on Linux using the instructions from https://pythonscad.org/downloads.php but I also needed to install libfive before it would run. I was able to reproduce a small example from <https://imgur.com/a/gu3xmms>, however, some of the polygons in the spirograph loops were filled with green when I asked it to Render. Note, it showed nothing during preview. Thought folks might find this useful. Let me know if you need a proper bug report. On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss < discuss@lists.openscad.org> wrote: > I am running the snapshot on MacOS: > > [image: PastedGraphic-1.png] > > I can neither see `GUI: Preferences->Features->Python-Engine` nor can I > start the command line with the options `CLI: --enable=python-engine > --trust-python`. I assume the CLI on Mac is in ` > /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD` > > Do I need to download another snapshot? I tried to find a landing page for > getting started with Openscad python but I am a bit confused. > > Kind regards, > > Peter Kriens > > > On 12 May 2025, at 10:07, Torsten Paul via Discuss < > discuss@lists.openscad.org> wrote: > > On 12.05.25 10:04, John David via Discuss wrote: > > I only have Linux machines. So the Win* install will not be so useful. > I do not have a "python" tab, and saving/running via a .py file is not > working. I'll look at compiling up a newer version. Is there a particular > branch or forked repository I need to work with? > > > For OpenSCAD master branch, you need to enable Python both on > compile time: > > -DENABLE_PYTHON=ON > > and on runtime: > > CLI: --enable=python-engine --trust-python > > GUI: Preferences->Features->Python-Engine > > ciao, > Torsten. > _______________________________________________ > 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 >
JD
John David
Mon, May 12, 2025 12:56 PM

@Guenther Sohler guenther.sohler@gmail.com
, I already installed libfive on the system before seeing your post on it
being a submodule.  I'll leave it for now, but might want to try removing
it and building specifically from a submodule later...

Thanks for the pointers!

On Mon, May 12, 2025 at 8:53 AM John David ebo.2112@gmail.com wrote:

Just a note for everyone.  I was able to get this built on Linux using the
instructions from https://pythonscad.org/downloads.php but I also needed
to install libfive before it would run.  I was able to reproduce a small
example from https://imgur.com/a/gu3xmms, however, some of the polygons
in the spirograph loops were filled with green when I asked it to Render.
Note, it showed nothing during preview.  Thought folks might find this
useful.  Let me know if you need a proper bug report.

On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss <
discuss@lists.openscad.org> wrote:

I am running the snapshot on MacOS:

[image: PastedGraphic-1.png]

I can neither see GUI: Preferences->Features->Python-Engine nor can I
start the command line with the options CLI: --enable=python-engine --trust-python. I assume the CLI on Mac is in /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD

Do I need to download another snapshot? I tried to find a landing page
for getting started with Openscad python but I am a bit confused.

Kind regards,

Peter Kriens

On 12 May 2025, at 10:07, Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

On 12.05.25 10:04, John David via Discuss wrote:

I only have Linux machines.  So the Win* install will not be so useful.
I do not have a "python" tab, and saving/running via a .py file is not
working.  I'll look at compiling up a newer version.  Is there a particular
branch or forked repository I need to work with?

For OpenSCAD master branch, you need to enable Python both on
compile time:

-DENABLE_PYTHON=ON

and on runtime:

CLI: --enable=python-engine --trust-python

GUI: Preferences->Features->Python-Engine

ciao,
Torsten.


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

@Guenther Sohler <guenther.sohler@gmail.com> , I already installed libfive on the system before seeing your post on it being a submodule. I'll leave it for now, but might want to try removing it and building specifically from a submodule later... Thanks for the pointers! On Mon, May 12, 2025 at 8:53 AM John David <ebo.2112@gmail.com> wrote: > Just a note for everyone. I was able to get this built on Linux using the > instructions from https://pythonscad.org/downloads.php but I also needed > to install libfive before it would run. I was able to reproduce a small > example from <https://imgur.com/a/gu3xmms>, however, some of the polygons > in the spirograph loops were filled with green when I asked it to Render. > Note, it showed nothing during preview. Thought folks might find this > useful. Let me know if you need a proper bug report. > > On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss < > discuss@lists.openscad.org> wrote: > >> I am running the snapshot on MacOS: >> >> [image: PastedGraphic-1.png] >> >> I can neither see `GUI: Preferences->Features->Python-Engine` nor can I >> start the command line with the options `CLI: --enable=python-engine >> --trust-python`. I assume the CLI on Mac is in ` >> /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD` >> >> Do I need to download another snapshot? I tried to find a landing page >> for getting started with Openscad python but I am a bit confused. >> >> Kind regards, >> >> Peter Kriens >> >> >> On 12 May 2025, at 10:07, Torsten Paul via Discuss < >> discuss@lists.openscad.org> wrote: >> >> On 12.05.25 10:04, John David via Discuss wrote: >> >> I only have Linux machines. So the Win* install will not be so useful. >> I do not have a "python" tab, and saving/running via a .py file is not >> working. I'll look at compiling up a newer version. Is there a particular >> branch or forked repository I need to work with? >> >> >> For OpenSCAD master branch, you need to enable Python both on >> compile time: >> >> -DENABLE_PYTHON=ON >> >> and on runtime: >> >> CLI: --enable=python-engine --trust-python >> >> GUI: Preferences->Features->Python-Engine >> >> ciao, >> Torsten. >> _______________________________________________ >> 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 >> >
WF
William F. Adams
Mon, May 12, 2025 1:04 PM

On Monday, May 12, 2025 at 08:39:02 AM EDT, edmund ronald via Discuss discuss@lists.openscad.org wrote:

My concern here is of course only from the end-user pov, that in my very limited experience OpenSCAD has always installed
flawlessly by drag and drop on the Mac and acted in a boring and predictable fashion. Python on the other hand seems to be 
very much into x.y.z version numbers, pip, conda, uv, requirements and version conflict hell; I don’t call that a good drag and drop 
experience. And I really dont find that my python software packages eg. Pytorch and minions etc work exactly the same from 
version to version. I would hate to see a novel render from an old file.

The two programming systems are quite separate/distinct and do not interact, unless one chooses to put in place a .py file to load, and invoke a command to load it in your .scad file.

I would like to note that I am somewhat curious about the possibility of Python being present in the OpenSCAD binary, and a feature being implemented using that and exposed to a .scad file --- is this something which seems potentially workable to folks? Or is it a needless complication?

William

On Monday, May 12, 2025 at 08:39:02 AM EDT, edmund ronald via Discuss <discuss@lists.openscad.org> wrote: >My concern here is of course only from the end-user pov, that in my very limited experience OpenSCAD has always installed >flawlessly by drag and drop on the Mac and acted in a boring and predictable fashion. Python on the other hand seems to be  >very much into x.y.z version numbers, pip, conda, uv, requirements and version conflict hell; I don’t call that a good drag and drop  >experience. And I really dont find that my python software packages eg. Pytorch and minions etc work exactly the same from  >version to version. I would hate to see a novel render from an old file. The two programming systems are quite separate/distinct and do _not_ interact, unless one chooses to put in place a .py file to load, _and_ invoke a command to load it in your .scad file. I would like to note that I am somewhat curious about the possibility of Python being present in the OpenSCAD binary, and a feature being implemented using that and exposed to a .scad file --- is this something which seems potentially workable to folks? Or is it a needless complication? William
GS
Guenther Sohler
Mon, May 12, 2025 1:15 PM

Ahh, you were referring to the spirograph in the 2025.05.06 build

That was meant to be a special application for the 2d colored test

Please don't use self-intersecting 2D polygons for openscad/pythonscad by
default.
Clipper2 did a really good job here  not crashing and showing something
useful instead.

On Mon, May 12, 2025 at 2:54 PM John David via Discuss <
discuss@lists.openscad.org> wrote:

Just a note for everyone.  I was able to get this built on Linux using the
instructions from https://pythonscad.org/downloads.php but I also needed
to install libfive before it would run.  I was able to reproduce a small
example from https://imgur.com/a/gu3xmms, however, some of the polygons
in the spirograph loops were filled with green when I asked it to Render.
Note, it showed nothing during preview.  Thought folks might find this
useful.  Let me know if you need a proper bug report.

On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss <
discuss@lists.openscad.org> wrote:

I am running the snapshot on MacOS:

[image: PastedGraphic-1.png]

I can neither see GUI: Preferences->Features->Python-Engine nor can I
start the command line with the options CLI: --enable=python-engine --trust-python. I assume the CLI on Mac is in /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD

Do I need to download another snapshot? I tried to find a landing page
for getting started with Openscad python but I am a bit confused.

Kind regards,

Peter Kriens

On 12 May 2025, at 10:07, Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

On 12.05.25 10:04, John David via Discuss wrote:

I only have Linux machines.  So the Win* install will not be so useful.
I do not have a "python" tab, and saving/running via a .py file is not
working.  I'll look at compiling up a newer version.  Is there a particular
branch or forked repository I need to work with?

For OpenSCAD master branch, you need to enable Python both on
compile time:

-DENABLE_PYTHON=ON

and on runtime:

CLI: --enable=python-engine --trust-python

GUI: Preferences->Features->Python-Engine

ciao,
Torsten.


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

Ahh, you were referring to the spirograph in the 2025.05.06 build That was meant to be a special application for the 2d colored test Please don't use self-intersecting 2D polygons for openscad/pythonscad by default. Clipper2 did a really good job here not crashing and showing something useful instead. On Mon, May 12, 2025 at 2:54 PM John David via Discuss < discuss@lists.openscad.org> wrote: > Just a note for everyone. I was able to get this built on Linux using the > instructions from https://pythonscad.org/downloads.php but I also needed > to install libfive before it would run. I was able to reproduce a small > example from <https://imgur.com/a/gu3xmms>, however, some of the polygons > in the spirograph loops were filled with green when I asked it to Render. > Note, it showed nothing during preview. Thought folks might find this > useful. Let me know if you need a proper bug report. > > On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss < > discuss@lists.openscad.org> wrote: > >> I am running the snapshot on MacOS: >> >> [image: PastedGraphic-1.png] >> >> I can neither see `GUI: Preferences->Features->Python-Engine` nor can I >> start the command line with the options `CLI: --enable=python-engine >> --trust-python`. I assume the CLI on Mac is in ` >> /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD` >> >> Do I need to download another snapshot? I tried to find a landing page >> for getting started with Openscad python but I am a bit confused. >> >> Kind regards, >> >> Peter Kriens >> >> >> On 12 May 2025, at 10:07, Torsten Paul via Discuss < >> discuss@lists.openscad.org> wrote: >> >> On 12.05.25 10:04, John David via Discuss wrote: >> >> I only have Linux machines. So the Win* install will not be so useful. >> I do not have a "python" tab, and saving/running via a .py file is not >> working. I'll look at compiling up a newer version. Is there a particular >> branch or forked repository I need to work with? >> >> >> For OpenSCAD master branch, you need to enable Python both on >> compile time: >> >> -DENABLE_PYTHON=ON >> >> and on runtime: >> >> CLI: --enable=python-engine --trust-python >> >> GUI: Preferences->Features->Python-Engine >> >> ciao, >> Torsten. >> _______________________________________________ >> 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 >
JD
John David
Mon, May 12, 2025 1:42 PM

Ahh... I just anted to try something quickly ;-)  Good to know though.
I'll try a couple of other bits and see how they work.

EBo --

On Mon, May 12, 2025 at 9:16 AM Guenther Sohler via Discuss <
discuss@lists.openscad.org> wrote:

Ahh, you were referring to the spirograph in the 2025.05.06 build

That was meant to be a special application for the 2d colored test

Please don't use self-intersecting 2D polygons for openscad/pythonscad by
default.
Clipper2 did a really good job here  not crashing and showing something
useful instead.

On Mon, May 12, 2025 at 2:54 PM John David via Discuss <
discuss@lists.openscad.org> wrote:

Just a note for everyone.  I was able to get this built on Linux using
the instructions from https://pythonscad.org/downloads.php but I also
needed to install libfive before it would run.  I was able to reproduce a
small example from https://imgur.com/a/gu3xmms, however, some of the
polygons in the spirograph loops were filled with green when I asked it to
Render.  Note, it showed nothing during preview.  Thought folks might find
this useful.  Let me know if you need a proper bug report.

On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss <
discuss@lists.openscad.org> wrote:

I am running the snapshot on MacOS:

[image: PastedGraphic-1.png]

I can neither see GUI: Preferences->Features->Python-Engine nor can I
start the command line with the options CLI: --enable=python-engine --trust-python. I assume the CLI on Mac is in /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD

Do I need to download another snapshot? I tried to find a landing page
for getting started with Openscad python but I am a bit confused.

Kind regards,

Peter Kriens

On 12 May 2025, at 10:07, Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

On 12.05.25 10:04, John David via Discuss wrote:

I only have Linux machines.  So the Win* install will not be so useful.
I do not have a "python" tab, and saving/running via a .py file is not
working.  I'll look at compiling up a newer version.  Is there a particular
branch or forked repository I need to work with?

For OpenSCAD master branch, you need to enable Python both on
compile time:

-DENABLE_PYTHON=ON

and on runtime:

CLI: --enable=python-engine --trust-python

GUI: Preferences->Features->Python-Engine

ciao,
Torsten.


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


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Ahh... I just anted to try something quickly ;-) Good to know though. I'll try a couple of other bits and see how they work. EBo -- On Mon, May 12, 2025 at 9:16 AM Guenther Sohler via Discuss < discuss@lists.openscad.org> wrote: > Ahh, you were referring to the spirograph in the 2025.05.06 build > > That was meant to be a special application for the 2d colored test > > Please don't use self-intersecting 2D polygons for openscad/pythonscad by > default. > Clipper2 did a really good job here not crashing and showing something > useful instead. > > > > > > On Mon, May 12, 2025 at 2:54 PM John David via Discuss < > discuss@lists.openscad.org> wrote: > >> Just a note for everyone. I was able to get this built on Linux using >> the instructions from https://pythonscad.org/downloads.php but I also >> needed to install libfive before it would run. I was able to reproduce a >> small example from <https://imgur.com/a/gu3xmms>, however, some of the >> polygons in the spirograph loops were filled with green when I asked it to >> Render. Note, it showed nothing during preview. Thought folks might find >> this useful. Let me know if you need a proper bug report. >> >> On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> I am running the snapshot on MacOS: >>> >>> [image: PastedGraphic-1.png] >>> >>> I can neither see `GUI: Preferences->Features->Python-Engine` nor can I >>> start the command line with the options `CLI: --enable=python-engine >>> --trust-python`. I assume the CLI on Mac is in ` >>> /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD` >>> >>> Do I need to download another snapshot? I tried to find a landing page >>> for getting started with Openscad python but I am a bit confused. >>> >>> Kind regards, >>> >>> Peter Kriens >>> >>> >>> On 12 May 2025, at 10:07, Torsten Paul via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>> On 12.05.25 10:04, John David via Discuss wrote: >>> >>> I only have Linux machines. So the Win* install will not be so useful. >>> I do not have a "python" tab, and saving/running via a .py file is not >>> working. I'll look at compiling up a newer version. Is there a particular >>> branch or forked repository I need to work with? >>> >>> >>> For OpenSCAD master branch, you need to enable Python both on >>> compile time: >>> >>> -DENABLE_PYTHON=ON >>> >>> and on runtime: >>> >>> CLI: --enable=python-engine --trust-python >>> >>> GUI: Preferences->Features->Python-Engine >>> >>> ciao, >>> Torsten. >>> _______________________________________________ >>> 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 >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JB
Jon Bondy
Mon, May 12, 2025 1:52 PM

William:

I find the BOSL2 library to be the first place I go when I need a
complex facility that I do not care to write myself.  I am curious as to
why you dismiss it so quickly and easily.

Jon

On 5/12/2025 8:21 AM, William F. Adams via Discuss wrote:

For at least a bit, I'd like to urge folks to just accept that there are some folks around who are interested in this way of working, and hit the delete key --- cue the old proverb about the fasces --- the delete key is always available, or one could filter out any messages which include "openscad" and "python" (there are a lot of e-mails which I delete, e.g., those regarding the BOSL library).

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

William: I find the BOSL2 library to be the first place I go when I need a complex facility that I do not care to write myself.  I am curious as to why you dismiss it so quickly and easily. Jon On 5/12/2025 8:21 AM, William F. Adams via Discuss wrote: > For at least a bit, I'd like to urge folks to just accept that there are some folks around who are interested in this way of working, and hit the delete key --- cue the old proverb about the fasces --- the delete key is always available, or one could filter out any messages which include "openscad" and "python" (there are a lot of e-mails which I delete, e.g., those regarding the BOSL library). > -- This email has been checked for viruses by AVG antivirus software. www.avg.com
JD
John David
Mon, May 12, 2025 2:00 PM

BTW, I was able to trivially get a BOSL2 call from python using the example
in <
https://old.reddit.com/r/OpenPythonSCAD/comments/1hc6yqw/importing_scad_libraries_into_pythonscad/>,
but I had to give the full path for the BOSL2 libraries.

Is there some setting for the default library install location (note, on my
machine it is /home/${USER}/.local/share/OpenSCAD/libraries/..."  I cannot
find anything in preferences to set/append directories.

EBo --

On Mon, May 12, 2025 at 9:42 AM John David ebo.2112@gmail.com wrote:

Ahh... I just anted to try something quickly ;-)  Good to know though.
I'll try a couple of other bits and see how they work.

EBo --

On Mon, May 12, 2025 at 9:16 AM Guenther Sohler via Discuss <
discuss@lists.openscad.org> wrote:

Ahh, you were referring to the spirograph in the 2025.05.06 build

That was meant to be a special application for the 2d colored test

Please don't use self-intersecting 2D polygons for openscad/pythonscad by
default.
Clipper2 did a really good job here  not crashing and showing something
useful instead.

On Mon, May 12, 2025 at 2:54 PM John David via Discuss <
discuss@lists.openscad.org> wrote:

Just a note for everyone.  I was able to get this built on Linux using
the instructions from https://pythonscad.org/downloads.php but I also
needed to install libfive before it would run.  I was able to reproduce a
small example from https://imgur.com/a/gu3xmms, however, some of the
polygons in the spirograph loops were filled with green when I asked it to
Render.  Note, it showed nothing during preview.  Thought folks might find
this useful.  Let me know if you need a proper bug report.

On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss <
discuss@lists.openscad.org> wrote:

I am running the snapshot on MacOS:

[image: PastedGraphic-1.png]

I can neither see GUI: Preferences->Features->Python-Engine nor can I
start the command line with the options CLI: --enable=python-engine --trust-python. I assume the CLI on Mac is in /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD

Do I need to download another snapshot? I tried to find a landing page
for getting started with Openscad python but I am a bit confused.

Kind regards,

Peter Kriens

On 12 May 2025, at 10:07, Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:

On 12.05.25 10:04, John David via Discuss wrote:

I only have Linux machines.  So the Win* install will not be so useful.
I do not have a "python" tab, and saving/running via a .py file is not
working.  I'll look at compiling up a newer version.  Is there a particular
branch or forked repository I need to work with?

For OpenSCAD master branch, you need to enable Python both on
compile time:

-DENABLE_PYTHON=ON

and on runtime:

CLI: --enable=python-engine --trust-python

GUI: Preferences->Features->Python-Engine

ciao,
Torsten.


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


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

BTW, I was able to trivially get a BOSL2 call from python using the example in < https://old.reddit.com/r/OpenPythonSCAD/comments/1hc6yqw/importing_scad_libraries_into_pythonscad/>, but I had to give the full path for the BOSL2 libraries. Is there some setting for the default library install location (note, on my machine it is /home/${USER}/.local/share/OpenSCAD/libraries/..." I cannot find anything in preferences to set/append directories. EBo -- On Mon, May 12, 2025 at 9:42 AM John David <ebo.2112@gmail.com> wrote: > Ahh... I just anted to try something quickly ;-) Good to know though. > I'll try a couple of other bits and see how they work. > > EBo -- > > On Mon, May 12, 2025 at 9:16 AM Guenther Sohler via Discuss < > discuss@lists.openscad.org> wrote: > >> Ahh, you were referring to the spirograph in the 2025.05.06 build >> >> That was meant to be a special application for the 2d colored test >> >> Please don't use self-intersecting 2D polygons for openscad/pythonscad by >> default. >> Clipper2 did a really good job here not crashing and showing something >> useful instead. >> >> >> >> >> >> On Mon, May 12, 2025 at 2:54 PM John David via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> Just a note for everyone. I was able to get this built on Linux using >>> the instructions from https://pythonscad.org/downloads.php but I also >>> needed to install libfive before it would run. I was able to reproduce a >>> small example from <https://imgur.com/a/gu3xmms>, however, some of the >>> polygons in the spirograph loops were filled with green when I asked it to >>> Render. Note, it showed nothing during preview. Thought folks might find >>> this useful. Let me know if you need a proper bug report. >>> >>> On Mon, May 12, 2025 at 4:29 AM Peter Kriens via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> I am running the snapshot on MacOS: >>>> >>>> [image: PastedGraphic-1.png] >>>> >>>> I can neither see `GUI: Preferences->Features->Python-Engine` nor can I >>>> start the command line with the options `CLI: --enable=python-engine >>>> --trust-python`. I assume the CLI on Mac is in ` >>>> /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD` >>>> >>>> Do I need to download another snapshot? I tried to find a landing page >>>> for getting started with Openscad python but I am a bit confused. >>>> >>>> Kind regards, >>>> >>>> Peter Kriens >>>> >>>> >>>> On 12 May 2025, at 10:07, Torsten Paul via Discuss < >>>> discuss@lists.openscad.org> wrote: >>>> >>>> On 12.05.25 10:04, John David via Discuss wrote: >>>> >>>> I only have Linux machines. So the Win* install will not be so useful. >>>> I do not have a "python" tab, and saving/running via a .py file is not >>>> working. I'll look at compiling up a newer version. Is there a particular >>>> branch or forked repository I need to work with? >>>> >>>> >>>> For OpenSCAD master branch, you need to enable Python both on >>>> compile time: >>>> >>>> -DENABLE_PYTHON=ON >>>> >>>> and on runtime: >>>> >>>> CLI: --enable=python-engine --trust-python >>>> >>>> GUI: Preferences->Features->Python-Engine >>>> >>>> ciao, >>>> Torsten. >>>> _______________________________________________ >>>> 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 >>> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >