pythonscad from commandline

4 views
Skip to first unread message

Matthieu Hendriks

unread,
Oct 5, 2025, 10:35:53 AM (11 days ago) Oct 5
to PythonSCAD
Is it possible and if yes how to start pythonscad from the commandline and passing some parameters like with openscad:

Something like: 
pythonscad -q  -D 'label="LabelTekst"'  labels.py -o labels.3mf

And is it also possible to do a lazy union so multiple objects can be recognized als different objects with different color for the (bambu) 3d printer?



Guenther Sohler

unread,
Oct 6, 2025, 4:50:57 AM (10 days ago) Oct 6
to Matthieu Hendriks, PythonSCAD
This functionality was there already, but got somehow lost

Now we have it again in the latest version. in the git master branch
you can write:

pythonscad --trust-python -D't="Hello"' model.py -o model.3mf

Of course you can also put  several objects into the same 3mf file, but this requires
use of export() function in the python script.




--
You received this message because you are subscribed to the Google Groups "PythonSCAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonscad+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pythonscad/a2dd22a3-c1fd-4103-a256-d5b39cf16296n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages