discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: The nature of Python in OpenSCAD and future plans/features

GS
Guenther Sohler
Wed, Aug 30, 2023 8:15 PM

And i think IT will BE pretty easy to use get python Working with the
customizer....

William F. Adams via Discuss discuss@lists.openscad.org schrieb am Mi.,
30. Aug. 2023, 20:23:

---------- Forwarded message ----------
From: "William F. Adams" willadams@aol.com
To: OpenSCAD General Discussion discuss@lists.openscad.org
Cc:
Bcc:
Date: Wed, 30 Aug 2023 18:22:28 +0000 (UTC)
Subject: [OpenSCAD] The nature of Python in OpenSCAD and future
plans/features
First, my understanding of the current implementation:

  • it requires a separate Python installation of a specific version, which
    has a specific file: libpython3.10.dll as well as other similar files
  • it operates on either Python or OpenSCAD files
  • Python files do not make use of the Customizer
  • it is not possible to call Python from w/in an OpenSCAD file

and that understanding makes my questions pretty obvious:

  • can the Python aspect be made easier? Bundle a "minimum distribution"
    of Python so that it "just works" once it is enabled by the user? Provide a
    separate download of a specific Python distribution?
  • make it possible for Python files to use the Customizer --- this would
    be a big win --- if that's not possible, would it be possible for a Python
    file to create a dialog window which would allow changing parameters and
    re-running the file (or a portion of it?)
  • the ability to have Python code in the OpenSCAD code which is also
    called would be huge --- I'd just want the Python code to have access to
    the current filename and to be able to pass it variables (and get them back)

William

---------- Forwarded message ----------
From: "William F. Adams via Discuss" discuss@lists.openscad.org
To: OpenSCAD General Discussion discuss@lists.openscad.org
Cc: "William F. Adams" willadams@aol.com
Bcc:
Date: Wed, 30 Aug 2023 18:22:28 +0000 (UTC)
Subject: [OpenSCAD] The nature of Python in OpenSCAD and future
plans/features


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

And i think IT will BE pretty easy to use get python Working with the customizer.... William F. Adams via Discuss <discuss@lists.openscad.org> schrieb am Mi., 30. Aug. 2023, 20:23: > > > > ---------- Forwarded message ---------- > From: "William F. Adams" <willadams@aol.com> > To: OpenSCAD General Discussion <discuss@lists.openscad.org> > Cc: > Bcc: > Date: Wed, 30 Aug 2023 18:22:28 +0000 (UTC) > Subject: [OpenSCAD] The nature of Python in OpenSCAD and future > plans/features > First, my understanding of the current implementation: > > - it requires a separate Python installation of a specific version, which > has a specific file: libpython3.10.dll as well as other similar files > - it operates on either Python or OpenSCAD files > - Python files do not make use of the Customizer > - it is not possible to call Python from w/in an OpenSCAD file > > and that understanding makes my questions pretty obvious: > > - can the Python aspect be made easier? Bundle a "minimum distribution" > of Python so that it "just works" once it is enabled by the user? Provide a > separate download of a specific Python distribution? > - make it possible for Python files to use the Customizer --- this would > be a big win --- if that's not possible, would it be possible for a Python > file to create a dialog window which would allow changing parameters and > re-running the file (or a portion of it?) > - the ability to have Python code in the OpenSCAD code which is also > called would be huge --- I'd just want the Python code to have access to > the current filename and to be able to pass it variables (and get them back) > > William > > > > > > > ---------- Forwarded message ---------- > From: "William F. Adams via Discuss" <discuss@lists.openscad.org> > To: OpenSCAD General Discussion <discuss@lists.openscad.org> > Cc: "William F. Adams" <willadams@aol.com> > Bcc: > Date: Wed, 30 Aug 2023 18:22:28 +0000 (UTC) > Subject: [OpenSCAD] The nature of Python in OpenSCAD and future > plans/features > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
WF
William F. Adams
Wed, Aug 30, 2023 9:49 PM

Great news that it is possible to call Python from OpenSCAD --- is there an example file showing that?
Getting the Customizer to work with Python in OpenSCAD would be awesome.
William

Great news that it is possible to call Python from OpenSCAD --- is there an example file showing that? Getting the Customizer to work with Python in OpenSCAD would be awesome. William