discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Python for openSCAD

SP
Sanjeev Prabhakar
Tue, Nov 14, 2023 2:36 AM

I have made another video to show how 2 waves can be used to produce shapes
or knots.

Although this is made in python but can be easily done in openscad as well

https://github.com/sprabhakar2006/openSCAD/blob/main/videos/2waves_to_create_shapes.mov

I have made another video to show how 2 waves can be used to produce shapes or knots. Although this is made in python but can be easily done in openscad as well https://github.com/sprabhakar2006/openSCAD/blob/main/videos/2waves_to_create_shapes.mov
J
jon
Tue, Nov 14, 2023 12:09 PM

If it can be don in OpenSCAD, why not show that also?  This is an
OpenSCAD list, not a Python list.

On 11/13/2023 9:36 PM, Sanjeev Prabhakar via Discuss wrote:

I have made another video to show how 2 waves can be used to produce
shapes or knots.

Although this is made in python but can be easily done in openscad as well

https://github.com/sprabhakar2006/openSCAD/blob/main/videos/2waves_to_create_shapes.mov


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

If it can be don in OpenSCAD, why not show that also?  This is an OpenSCAD list, not a Python list. On 11/13/2023 9:36 PM, Sanjeev Prabhakar via Discuss wrote: > I have made another video to show how 2 waves can be used to produce > shapes or knots. > > Although this is made in python but can be easily done in openscad as well > > https://github.com/sprabhakar2006/openSCAD/blob/main/videos/2waves_to_create_shapes.mov > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
WF
William F. Adams
Tue, Nov 14, 2023 1:22 PM

On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss discuss@lists.openscad.org wrote:

If it can be don in OpenSCAD, why not show that also?  This is an
OpenSCAD list, not a Python list.

Perhaps OP hasn't programmed that yet?
I guess we could view implementing this in OpenSCAD as "an exercise left for the reader"?
That said, there has been a lot of effort to integrate Python with OpenSCAD in the past, and I for one think it's flat-out amazing what Guenther has achieved, and I look forward to all that potential interest creating a lot more things such as Sanjeev has shown in his nifty video, and not just because it was an absolute sea change in my own project:
https://github.com/WillAdams/gcodepreview

making it possible to write out G-code and DXF files so that OpenSCAD can be fully integrated with other CAD/CAM tools.
Of potential interest there is that I worked up a technique where:
 - a Python file was added to a project via use - an OpenSCAD file then wrapped the Python commands in OpenSCAD code via use - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code while using branching based on variables via include
This gave me the best of all possible worlds:
 - an OpenSCAD project which was simple/compatible enough for me to make use of it via OpenSCAD Graph Editor - a Python back-end which could be used for "real" variables and to write out files (a feature which I have been asking after for a long time)
and most importantly, a tool which gave me the same excitement I had upon first using TeX on my NeXT Cube --- a tool which could do anything and which had as its only limits computer processing speed/storage (or my patience) and human ingenuity.
Most recent public update is at:
https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4

for folks who want to see half of a joint --- next up is a test cut, then the horizontal versions.
I'm looking forward to what more talented folks will do with this, and ask that folks who are only interested in "pure" OpenSCAD just exercise a bit of forbearance (and the "delete message" function in their e-mail reader, or some sort of filter?) so as to share this space with folks who are interested in the possibilities of Python and OpenSCAD.
William

On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss <discuss@lists.openscad.org> wrote: >If it can be don in OpenSCAD, why not show that also?  This is an >OpenSCAD list, not a Python list. Perhaps OP hasn't programmed that yet? I guess we could view implementing this in OpenSCAD as "an exercise left for the reader"? That said, there has been a _lot_ of effort to integrate Python with OpenSCAD in the past, and I for one think it's flat-out _amazing_ what Guenther has achieved, and I look forward to all that potential interest creating a lot more things such as Sanjeev has shown in his nifty video, and not just because it was an absolute sea change in my own project: https://github.com/WillAdams/gcodepreview making it possible to write out G-code and DXF files so that OpenSCAD can be fully integrated with other CAD/CAM tools. Of potential interest there is that I worked up a technique where:  - a Python file was added to a project via use - an OpenSCAD file then wrapped the Python commands in OpenSCAD code via use - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code while using branching based on variables via include This gave me the best of all possible worlds:  - an OpenSCAD project which was simple/compatible enough for me to make use of it via OpenSCAD Graph Editor - a Python back-end which could be used for "real" variables and to write out files (a feature which I have been asking after for a _long_ time) and most importantly, a tool which gave me the same excitement I had upon first using TeX on my NeXT Cube --- a tool which could do _anything_ and which had as its only limits computer processing speed/storage (or my patience) and human ingenuity. Most recent public update is at: https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4 for folks who want to see half of a joint --- next up is a test cut, then the horizontal versions. I'm looking forward to what more talented folks will do with this, and ask that folks who are only interested in "pure" OpenSCAD just exercise a bit of forbearance (and the "delete message" function in their e-mail reader, or some sort of filter?) so as to share this space with folks who are interested in the possibilities of Python and OpenSCAD. William
J
jon
Tue, Nov 14, 2023 1:54 PM

William:

I am pleased and excited about what you have been able to achieve,
perhaps with the necessary assistance of people like Guenther.  I see
what you are doing as very different than generating geometry, which can
be done in pure OpenSCAD (with libraries) for the most part.

It will be interesting to see exactly what geometry generation can be
done more easily or more rapidly with the Python assist.

Jon

On 11/14/2023 8:22 AM, William F. Adams via Discuss wrote:

On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss
discuss@lists.openscad.org wrote:

If it can be don in OpenSCAD, why not show that also?  This is an
OpenSCAD list, not a Python list.

Perhaps OP hasn't programmed that yet?

I guess we could view implementing this in OpenSCAD as "an exercise
left for the reader"?

That said, there has been a lot of effort to integrate Python with
OpenSCAD in the past, and I for one think it's flat-out amazing what
Guenther has achieved, and I look forward to all that potential
interest creating a lot more things such as Sanjeev has shown in his
nifty video, and not just because it was an absolute sea change in my
own project:

https://github.com/WillAdams/gcodepreview

making it possible to write out G-code and DXF files so that OpenSCAD
can be fully integrated with other CAD/CAM tools.

Of potential interest there is that I worked up a technique where:

 - a Python file was added to a project via use
 - an OpenSCAD file then wrapped the Python commands in OpenSCAD code
via use
 - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD
code while using branching based on variables via include

This gave me the best of all possible worlds:

 - an OpenSCAD project which was simple/compatible enough for me to
make use of it via OpenSCAD Graph Editor
 - a Python back-end which could be used for "real" variables and to
write out files (a feature which I have been asking after for a long
time)

and most importantly, a tool which gave me the same excitement I had
upon first using TeX on my NeXT Cube --- a tool which could do
anything and which had as its only limits computer processing
speed/storage (or my patience) and human ingenuity.

Most recent public update is at:

https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4

for folks who want to see half of a joint --- next up is a test cut,
then the horizontal versions.

I'm looking forward to what more talented folks will do with this, and
ask that folks who are only interested in "pure" OpenSCAD just
exercise a bit of forbearance (and the "delete message" function in
their e-mail reader, or some sort of filter?) so as to share this
space with folks who are interested in the possibilities of Python and
OpenSCAD.

William


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

William: I am pleased and excited about what you have been able to achieve, perhaps with the necessary assistance of people like Guenther.  I see what you are doing as very different than generating geometry, which can be done in pure OpenSCAD (with libraries) for the most part. It will be interesting to see exactly what geometry generation can be done more easily or more rapidly with the Python assist. Jon On 11/14/2023 8:22 AM, William F. Adams via Discuss wrote: > On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss > <discuss@lists.openscad.org> wrote: > > >If it can be don in OpenSCAD, why not show that also?  This is an > >OpenSCAD list, not a Python list. > > Perhaps OP hasn't programmed that yet? > > I guess we could view implementing this in OpenSCAD as "an exercise > left for the reader"? > > That said, there has been a _lot_ of effort to integrate Python with > OpenSCAD in the past, and I for one think it's flat-out _amazing_ what > Guenther has achieved, and I look forward to all that potential > interest creating a lot more things such as Sanjeev has shown in his > nifty video, and not just because it was an absolute sea change in my > own project: > > https://github.com/WillAdams/gcodepreview > > making it possible to write out G-code and DXF files so that OpenSCAD > can be fully integrated with other CAD/CAM tools. > > Of potential interest there is that I worked up a technique where: > >  - a Python file was added to a project via use >  - an OpenSCAD file then wrapped the Python commands in OpenSCAD code > via use >  - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD > code while using branching based on variables via include > > This gave me the best of all possible worlds: > >  - an OpenSCAD project which was simple/compatible enough for me to > make use of it via OpenSCAD Graph Editor >  - a Python back-end which could be used for "real" variables and to > write out files (a feature which I have been asking after for a _long_ > time) > > and most importantly, a tool which gave me the same excitement I had > upon first using TeX on my NeXT Cube --- a tool which could do > _anything_ and which had as its only limits computer processing > speed/storage (or my patience) and human ingenuity. > > Most recent public update is at: > > https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4 > > for folks who want to see half of a joint --- next up is a test cut, > then the horizontal versions. > > I'm looking forward to what more talented folks will do with this, and > ask that folks who are only interested in "pure" OpenSCAD just > exercise a bit of forbearance (and the "delete message" function in > their e-mail reader, or some sort of filter?) so as to share this > space with folks who are interested in the possibilities of Python and > OpenSCAD. > > William > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Tue, Nov 14, 2023 1:55 PM

I have tried Guenther's python integration for macbook earlier but somehow
was not successful. Maybe if there is any improvement in the last 1 month,
I will try again.

I have seen your work and it looks promising.

Please keep it up!

On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss <
discuss@lists.openscad.org> wrote:

On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss <
discuss@lists.openscad.org> wrote:

If it can be don in OpenSCAD, why not show that also?  This is an
OpenSCAD list, not a Python list.

Perhaps OP hasn't programmed that yet?

I guess we could view implementing this in OpenSCAD as "an exercise left
for the reader"?

That said, there has been a lot of effort to integrate Python with
OpenSCAD in the past, and I for one think it's flat-out amazing what
Guenther has achieved, and I look forward to all that potential interest
creating a lot more things such as Sanjeev has shown in his nifty video,
and not just because it was an absolute sea change in my own project:

https://github.com/WillAdams/gcodepreview

making it possible to write out G-code and DXF files so that OpenSCAD can
be fully integrated with other CAD/CAM tools.

Of potential interest there is that I worked up a technique where:

  • a Python file was added to a project via use
  • an OpenSCAD file then wrapped the Python commands in OpenSCAD code via
    use
  • an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code
    while using branching based on variables via include

This gave me the best of all possible worlds:

  • an OpenSCAD project which was simple/compatible enough for me to make
    use of it via OpenSCAD Graph Editor
  • a Python back-end which could be used for "real" variables and to write
    out files (a feature which I have been asking after for a long time)

and most importantly, a tool which gave me the same excitement I had upon
first using TeX on my NeXT Cube --- a tool which could do anything and
which had as its only limits computer processing speed/storage (or my
patience) and human ingenuity.

Most recent public update is at:

https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4

for folks who want to see half of a joint --- next up is a test cut, then
the horizontal versions.

I'm looking forward to what more talented folks will do with this, and ask
that folks who are only interested in "pure" OpenSCAD just exercise a bit
of forbearance (and the "delete message" function in their e-mail reader,
or some sort of filter?) so as to share this space with folks who are
interested in the possibilities of Python and OpenSCAD.

William


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

I have tried Guenther's python integration for macbook earlier but somehow was not successful. Maybe if there is any improvement in the last 1 month, I will try again. I have seen your work and it looks promising. Please keep it up! On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss < discuss@lists.openscad.org> wrote: > On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss < > discuss@lists.openscad.org> wrote: > > >If it can be don in OpenSCAD, why not show that also? This is an > >OpenSCAD list, not a Python list. > > Perhaps OP hasn't programmed that yet? > > I guess we could view implementing this in OpenSCAD as "an exercise left > for the reader"? > > That said, there has been a _lot_ of effort to integrate Python with > OpenSCAD in the past, and I for one think it's flat-out _amazing_ what > Guenther has achieved, and I look forward to all that potential interest > creating a lot more things such as Sanjeev has shown in his nifty video, > and not just because it was an absolute sea change in my own project: > > https://github.com/WillAdams/gcodepreview > > making it possible to write out G-code and DXF files so that OpenSCAD can > be fully integrated with other CAD/CAM tools. > > Of potential interest there is that I worked up a technique where: > > - a Python file was added to a project via use > - an OpenSCAD file then wrapped the Python commands in OpenSCAD code via > use > - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code > while using branching based on variables via include > > This gave me the best of all possible worlds: > > - an OpenSCAD project which was simple/compatible enough for me to make > use of it via OpenSCAD Graph Editor > - a Python back-end which could be used for "real" variables and to write > out files (a feature which I have been asking after for a _long_ time) > > and most importantly, a tool which gave me the same excitement I had upon > first using TeX on my NeXT Cube --- a tool which could do _anything_ and > which had as its only limits computer processing speed/storage (or my > patience) and human ingenuity. > > Most recent public update is at: > > https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4 > > for folks who want to see half of a joint --- next up is a test cut, then > the horizontal versions. > > I'm looking forward to what more talented folks will do with this, and ask > that folks who are only interested in "pure" OpenSCAD just exercise a bit > of forbearance (and the "delete message" function in their e-mail reader, > or some sort of filter?) so as to share this space with folks who are > interested in the possibilities of Python and OpenSCAD. > > William > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
GS
Guenther Sohler
Tue, Nov 14, 2023 2:51 PM

Sanjeev, the DMG file was created on an old Mac whereas yours has recent
x86 architecture. This might be the reason why it did not start up in your
Mac. If someone volunteers to compile it on a recent Mac of course I can
help out with debugging compilation issues...

On Tue, Nov 14, 2023, 14:55 Sanjeev Prabhakar via Discuss <
discuss@lists.openscad.org> wrote:

I have tried Guenther's python integration for macbook earlier but somehow
was not successful. Maybe if there is any improvement in the last 1 month,
I will try again.

I have seen your work and it looks promising.

Please keep it up!

On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss <
discuss@lists.openscad.org> wrote:

On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss <
discuss@lists.openscad.org> wrote:

If it can be don in OpenSCAD, why not show that also?  This is an
OpenSCAD list, not a Python list.

Perhaps OP hasn't programmed that yet?

I guess we could view implementing this in OpenSCAD as "an exercise left
for the reader"?

That said, there has been a lot of effort to integrate Python with
OpenSCAD in the past, and I for one think it's flat-out amazing what
Guenther has achieved, and I look forward to all that potential interest
creating a lot more things such as Sanjeev has shown in his nifty video,
and not just because it was an absolute sea change in my own project:

https://github.com/WillAdams/gcodepreview

making it possible to write out G-code and DXF files so that OpenSCAD can
be fully integrated with other CAD/CAM tools.

Of potential interest there is that I worked up a technique where:

  • a Python file was added to a project via use
  • an OpenSCAD file then wrapped the Python commands in OpenSCAD code via
    use
  • an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code
    while using branching based on variables via include

This gave me the best of all possible worlds:

  • an OpenSCAD project which was simple/compatible enough for me to make
    use of it via OpenSCAD Graph Editor
  • a Python back-end which could be used for "real" variables and to
    write out files (a feature which I have been asking after for a long time)

and most importantly, a tool which gave me the same excitement I had upon
first using TeX on my NeXT Cube --- a tool which could do anything and
which had as its only limits computer processing speed/storage (or my
patience) and human ingenuity.

Most recent public update is at:

https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4

for folks who want to see half of a joint --- next up is a test cut, then
the horizontal versions.

I'm looking forward to what more talented folks will do with this, and
ask that folks who are only interested in "pure" OpenSCAD just exercise a
bit of forbearance (and the "delete message" function in their e-mail
reader, or some sort of filter?) so as to share this space with folks who
are interested in the possibilities of Python and OpenSCAD.

William


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, the DMG file was created on an old Mac whereas yours has recent x86 architecture. This might be the reason why it did not start up in your Mac. If someone volunteers to compile it on a recent Mac of course I can help out with debugging compilation issues... On Tue, Nov 14, 2023, 14:55 Sanjeev Prabhakar via Discuss < discuss@lists.openscad.org> wrote: > I have tried Guenther's python integration for macbook earlier but somehow > was not successful. Maybe if there is any improvement in the last 1 month, > I will try again. > > I have seen your work and it looks promising. > > Please keep it up! > > > > On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss < > discuss@lists.openscad.org> wrote: > >> On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss < >> discuss@lists.openscad.org> wrote: >> >> >If it can be don in OpenSCAD, why not show that also? This is an >> >OpenSCAD list, not a Python list. >> >> Perhaps OP hasn't programmed that yet? >> >> I guess we could view implementing this in OpenSCAD as "an exercise left >> for the reader"? >> >> That said, there has been a _lot_ of effort to integrate Python with >> OpenSCAD in the past, and I for one think it's flat-out _amazing_ what >> Guenther has achieved, and I look forward to all that potential interest >> creating a lot more things such as Sanjeev has shown in his nifty video, >> and not just because it was an absolute sea change in my own project: >> >> https://github.com/WillAdams/gcodepreview >> >> making it possible to write out G-code and DXF files so that OpenSCAD can >> be fully integrated with other CAD/CAM tools. >> >> Of potential interest there is that I worked up a technique where: >> >> - a Python file was added to a project via use >> - an OpenSCAD file then wrapped the Python commands in OpenSCAD code via >> use >> - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code >> while using branching based on variables via include >> >> This gave me the best of all possible worlds: >> >> - an OpenSCAD project which was simple/compatible enough for me to make >> use of it via OpenSCAD Graph Editor >> - a Python back-end which could be used for "real" variables and to >> write out files (a feature which I have been asking after for a _long_ time) >> >> and most importantly, a tool which gave me the same excitement I had upon >> first using TeX on my NeXT Cube --- a tool which could do _anything_ and >> which had as its only limits computer processing speed/storage (or my >> patience) and human ingenuity. >> >> Most recent public update is at: >> >> >> https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4 >> >> for folks who want to see half of a joint --- next up is a test cut, then >> the horizontal versions. >> >> I'm looking forward to what more talented folks will do with this, and >> ask that folks who are only interested in "pure" OpenSCAD just exercise a >> bit of forbearance (and the "delete message" function in their e-mail >> reader, or some sort of filter?) so as to share this space with folks who >> are interested in the possibilities of Python and OpenSCAD. >> >> William >> >> _______________________________________________ >> 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 >
FH
Father Horton
Tue, Nov 14, 2023 2:53 PM

Surely you mean that it was created on x86 as opposed to the newer Apple
Silicon. But Apple provides a translator, so it ought to run.

On Tue, Nov 14, 2023 at 8:51 AM Guenther Sohler via Discuss <
discuss@lists.openscad.org> wrote:

Sanjeev, the DMG file was created on an old Mac whereas yours has recent
x86 architecture. This might be the reason why it did not start up in your
Mac. If someone volunteers to compile it on a recent Mac of course I can
help out with debugging compilation issues...

On Tue, Nov 14, 2023, 14:55 Sanjeev Prabhakar via Discuss <
discuss@lists.openscad.org> wrote:

I have tried Guenther's python integration for macbook earlier but
somehow was not successful. Maybe if there is any improvement in the last 1
month, I will try again.

I have seen your work and it looks promising.

Please keep it up!

On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss <
discuss@lists.openscad.org> wrote:

On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss <
discuss@lists.openscad.org> wrote:

If it can be don in OpenSCAD, why not show that also?  This is an
OpenSCAD list, not a Python list.

Perhaps OP hasn't programmed that yet?

I guess we could view implementing this in OpenSCAD as "an exercise left
for the reader"?

That said, there has been a lot of effort to integrate Python with
OpenSCAD in the past, and I for one think it's flat-out amazing what
Guenther has achieved, and I look forward to all that potential interest
creating a lot more things such as Sanjeev has shown in his nifty video,
and not just because it was an absolute sea change in my own project:

https://github.com/WillAdams/gcodepreview

making it possible to write out G-code and DXF files so that OpenSCAD
can be fully integrated with other CAD/CAM tools.

Of potential interest there is that I worked up a technique where:

  • a Python file was added to a project via use
  • an OpenSCAD file then wrapped the Python commands in OpenSCAD code
    via use
  • an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code
    while using branching based on variables via include

This gave me the best of all possible worlds:

  • an OpenSCAD project which was simple/compatible enough for me to make
    use of it via OpenSCAD Graph Editor
  • a Python back-end which could be used for "real" variables and to
    write out files (a feature which I have been asking after for a long time)

and most importantly, a tool which gave me the same excitement I had
upon first using TeX on my NeXT Cube --- a tool which could do anything
and which had as its only limits computer processing speed/storage (or my
patience) and human ingenuity.

Most recent public update is at:

https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4

for folks who want to see half of a joint --- next up is a test cut,
then the horizontal versions.

I'm looking forward to what more talented folks will do with this, and
ask that folks who are only interested in "pure" OpenSCAD just exercise a
bit of forbearance (and the "delete message" function in their e-mail
reader, or some sort of filter?) so as to share this space with folks who
are interested in the possibilities of Python and OpenSCAD.

William


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

Surely you mean that it was created on x86 as opposed to the newer Apple Silicon. But Apple provides a translator, so it ought to run. On Tue, Nov 14, 2023 at 8:51 AM Guenther Sohler via Discuss < discuss@lists.openscad.org> wrote: > Sanjeev, the DMG file was created on an old Mac whereas yours has recent > x86 architecture. This might be the reason why it did not start up in your > Mac. If someone volunteers to compile it on a recent Mac of course I can > help out with debugging compilation issues... > > On Tue, Nov 14, 2023, 14:55 Sanjeev Prabhakar via Discuss < > discuss@lists.openscad.org> wrote: > >> I have tried Guenther's python integration for macbook earlier but >> somehow was not successful. Maybe if there is any improvement in the last 1 >> month, I will try again. >> >> I have seen your work and it looks promising. >> >> Please keep it up! >> >> >> >> On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>> >If it can be don in OpenSCAD, why not show that also? This is an >>> >OpenSCAD list, not a Python list. >>> >>> Perhaps OP hasn't programmed that yet? >>> >>> I guess we could view implementing this in OpenSCAD as "an exercise left >>> for the reader"? >>> >>> That said, there has been a _lot_ of effort to integrate Python with >>> OpenSCAD in the past, and I for one think it's flat-out _amazing_ what >>> Guenther has achieved, and I look forward to all that potential interest >>> creating a lot more things such as Sanjeev has shown in his nifty video, >>> and not just because it was an absolute sea change in my own project: >>> >>> https://github.com/WillAdams/gcodepreview >>> >>> making it possible to write out G-code and DXF files so that OpenSCAD >>> can be fully integrated with other CAD/CAM tools. >>> >>> Of potential interest there is that I worked up a technique where: >>> >>> - a Python file was added to a project via use >>> - an OpenSCAD file then wrapped the Python commands in OpenSCAD code >>> via use >>> - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code >>> while using branching based on variables via include >>> >>> This gave me the best of all possible worlds: >>> >>> - an OpenSCAD project which was simple/compatible enough for me to make >>> use of it via OpenSCAD Graph Editor >>> - a Python back-end which could be used for "real" variables and to >>> write out files (a feature which I have been asking after for a _long_ time) >>> >>> and most importantly, a tool which gave me the same excitement I had >>> upon first using TeX on my NeXT Cube --- a tool which could do _anything_ >>> and which had as its only limits computer processing speed/storage (or my >>> patience) and human ingenuity. >>> >>> Most recent public update is at: >>> >>> >>> https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4 >>> >>> for folks who want to see half of a joint --- next up is a test cut, >>> then the horizontal versions. >>> >>> I'm looking forward to what more talented folks will do with this, and >>> ask that folks who are only interested in "pure" OpenSCAD just exercise a >>> bit of forbearance (and the "delete message" function in their e-mail >>> reader, or some sort of filter?) so as to share this space with folks who >>> are interested in the possibilities of Python and OpenSCAD. >>> >>> William >>> >>> _______________________________________________ >>> 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 >
SP
Sanjeev Prabhakar
Tue, Nov 14, 2023 3:05 PM

Hi Guenther
William has sent me visual steps to implement your software.
Will try tonight again and will let you know in case it doesn't work, also
will share if it works.
Thanks for your effort

On Tue, 14 Nov, 2023, 8:21 pm Guenther Sohler via Discuss, <
discuss@lists.openscad.org> wrote:

Sanjeev, the DMG file was created on an old Mac whereas yours has recent
x86 architecture. This might be the reason why it did not start up in your
Mac. If someone volunteers to compile it on a recent Mac of course I can
help out with debugging compilation issues...

On Tue, Nov 14, 2023, 14:55 Sanjeev Prabhakar via Discuss <
discuss@lists.openscad.org> wrote:

I have tried Guenther's python integration for macbook earlier but
somehow was not successful. Maybe if there is any improvement in the last 1
month, I will try again.

I have seen your work and it looks promising.

Please keep it up!

On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss <
discuss@lists.openscad.org> wrote:

On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss <
discuss@lists.openscad.org> wrote:

If it can be don in OpenSCAD, why not show that also?  This is an
OpenSCAD list, not a Python list.

Perhaps OP hasn't programmed that yet?

I guess we could view implementing this in OpenSCAD as "an exercise left
for the reader"?

That said, there has been a lot of effort to integrate Python with
OpenSCAD in the past, and I for one think it's flat-out amazing what
Guenther has achieved, and I look forward to all that potential interest
creating a lot more things such as Sanjeev has shown in his nifty video,
and not just because it was an absolute sea change in my own project:

https://github.com/WillAdams/gcodepreview

making it possible to write out G-code and DXF files so that OpenSCAD
can be fully integrated with other CAD/CAM tools.

Of potential interest there is that I worked up a technique where:

  • a Python file was added to a project via use
  • an OpenSCAD file then wrapped the Python commands in OpenSCAD code
    via use
  • an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code
    while using branching based on variables via include

This gave me the best of all possible worlds:

  • an OpenSCAD project which was simple/compatible enough for me to make
    use of it via OpenSCAD Graph Editor
  • a Python back-end which could be used for "real" variables and to
    write out files (a feature which I have been asking after for a long time)

and most importantly, a tool which gave me the same excitement I had
upon first using TeX on my NeXT Cube --- a tool which could do anything
and which had as its only limits computer processing speed/storage (or my
patience) and human ingenuity.

Most recent public update is at:

https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4

for folks who want to see half of a joint --- next up is a test cut,
then the horizontal versions.

I'm looking forward to what more talented folks will do with this, and
ask that folks who are only interested in "pure" OpenSCAD just exercise a
bit of forbearance (and the "delete message" function in their e-mail
reader, or some sort of filter?) so as to share this space with folks who
are interested in the possibilities of Python and OpenSCAD.

William


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

Hi Guenther William has sent me visual steps to implement your software. Will try tonight again and will let you know in case it doesn't work, also will share if it works. Thanks for your effort On Tue, 14 Nov, 2023, 8:21 pm Guenther Sohler via Discuss, < discuss@lists.openscad.org> wrote: > Sanjeev, the DMG file was created on an old Mac whereas yours has recent > x86 architecture. This might be the reason why it did not start up in your > Mac. If someone volunteers to compile it on a recent Mac of course I can > help out with debugging compilation issues... > > On Tue, Nov 14, 2023, 14:55 Sanjeev Prabhakar via Discuss < > discuss@lists.openscad.org> wrote: > >> I have tried Guenther's python integration for macbook earlier but >> somehow was not successful. Maybe if there is any improvement in the last 1 >> month, I will try again. >> >> I have seen your work and it looks promising. >> >> Please keep it up! >> >> >> >> On Tue, 14 Nov 2023 at 18:52, William F. Adams via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> On Tuesday, November 14, 2023 at 07:10:01 AM EST, jon via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>> >If it can be don in OpenSCAD, why not show that also? This is an >>> >OpenSCAD list, not a Python list. >>> >>> Perhaps OP hasn't programmed that yet? >>> >>> I guess we could view implementing this in OpenSCAD as "an exercise left >>> for the reader"? >>> >>> That said, there has been a _lot_ of effort to integrate Python with >>> OpenSCAD in the past, and I for one think it's flat-out _amazing_ what >>> Guenther has achieved, and I look forward to all that potential interest >>> creating a lot more things such as Sanjeev has shown in his nifty video, >>> and not just because it was an absolute sea change in my own project: >>> >>> https://github.com/WillAdams/gcodepreview >>> >>> making it possible to write out G-code and DXF files so that OpenSCAD >>> can be fully integrated with other CAD/CAM tools. >>> >>> Of potential interest there is that I worked up a technique where: >>> >>> - a Python file was added to a project via use >>> - an OpenSCAD file then wrapped the Python commands in OpenSCAD code >>> via use >>> - an OpenSCAD file then wrapped the OpenSCAD commands in OpenSCAD code >>> while using branching based on variables via include >>> >>> This gave me the best of all possible worlds: >>> >>> - an OpenSCAD project which was simple/compatible enough for me to make >>> use of it via OpenSCAD Graph Editor >>> - a Python back-end which could be used for "real" variables and to >>> write out files (a feature which I have been asking after for a _long_ time) >>> >>> and most importantly, a tool which gave me the same excitement I had >>> upon first using TeX on my NeXT Cube --- a tool which could do _anything_ >>> and which had as its only limits computer processing speed/storage (or my >>> patience) and human ingenuity. >>> >>> Most recent public update is at: >>> >>> >>> https://forum.makerforums.info/t/rewriting-gcodepreview-with-python/88617/4 >>> >>> for folks who want to see half of a joint --- next up is a test cut, >>> then the horizontal versions. >>> >>> I'm looking forward to what more talented folks will do with this, and >>> ask that folks who are only interested in "pure" OpenSCAD just exercise a >>> bit of forbearance (and the "delete message" function in their e-mail >>> reader, or some sort of filter?) so as to share this space with folks who >>> are interested in the possibilities of Python and OpenSCAD. >>> >>> William >>> >>> _______________________________________________ >>> 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 >
WF
William F. Adams
Tue, Nov 14, 2023 3:25 PM

On Tuesday, November 14, 2023 at 10:05:56 AM EST, Sanjeev Prabhakar via Discuss discuss@lists.openscad.org wrote:

William has sent me visual steps to implement your software.>Will try tonight again and will let you know in case it doesn't work, also will share if it works.

I did have one further thought here --- if you have an M1 (or 2 or 3) ARM CPU, then if you haven't, see if installing "Rosetta" which is what they are calling their Intel-ARM compatibility layer (because of course, no one uses a Newton anymore).
William

On Tuesday, November 14, 2023 at 10:05:56 AM EST, Sanjeev Prabhakar via Discuss <discuss@lists.openscad.org> wrote: >William has sent me visual steps to implement your software.>Will try tonight again and will let you know in case it doesn't work, also will share if it works. I did have one further thought here --- if you have an M1 (or 2 or 3) ARM CPU, then if you haven't, see if installing "Rosetta" which is what they are calling their Intel-ARM compatibility layer (because of course, no one uses a Newton anymore). William
SP
Sanjeev Prabhakar
Tue, Nov 14, 2023 4:31 PM

I have installed Rosetta2 , still it doesnt work and there is a long error
message
I have macbook air m1

On Tue, 14 Nov 2023 at 20:55, William F. Adams via Discuss <
discuss@lists.openscad.org> wrote:

On Tuesday, November 14, 2023 at 10:05:56 AM EST, Sanjeev Prabhakar via
Discuss discuss@lists.openscad.org wrote:

William has sent me visual steps to implement your software.
Will try tonight again and will let you know in case it doesn't work,

also will share if it works.

I did have one further thought here --- if you have an M1 (or 2 or 3) ARM
CPU, then if you haven't, see if installing "Rosetta" which is what they
are calling their Intel-ARM compatibility layer (because of course, no one
uses a Newton anymore).

William


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

I have installed Rosetta2 , still it doesnt work and there is a long error message I have macbook air m1 On Tue, 14 Nov 2023 at 20:55, William F. Adams via Discuss < discuss@lists.openscad.org> wrote: > On Tuesday, November 14, 2023 at 10:05:56 AM EST, Sanjeev Prabhakar via > Discuss <discuss@lists.openscad.org> wrote: > > >William has sent me visual steps to implement your software. > >Will try tonight again and will let you know in case it doesn't work, > also will share if it works. > > I did have one further thought here --- if you have an M1 (or 2 or 3) ARM > CPU, then if you haven't, see if installing "Rosetta" which is what they > are calling their Intel-ARM compatibility layer (because of course, no one > uses a Newton anymore). > > William > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >