discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

The nature of Python in OpenSCAD and future plans/features

WF
William F. Adams
Wed, Aug 30, 2023 6:22 PM

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

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