I am using a *.bat file to render some of my *.scad files that use the object() function of the Nightly Build (2025.11.06) However, the output from the *.bat file says the following:
WARNING: Experimental builtin function 'object' is not enabled in file …
Based on what I have been able to find, this is because OpenSCAD has not yet finished loading the code it uses for the object() function. My code runs fine if I open my file in OpenSCAD, but there are certain things that would be nice to do using *.bat files. Is there a way to force OpenSCAD to finish loading the object() function before doing the other tasks that may be done using the command line? Thanks!
Nathan Sokalski
njsokalski@hotmail.commailto:njsokalski@hotmail.com
On 11/7/2025 9:03 PM, Nathan Sokalski via Discuss wrote:
I am using a *.bat file to render some of my *.scad files that use the
object() function of the Nightly Build (2025.11.06) However, the
output from the *.bat file says the following:
WARNING: Experimental builtin function 'object' is not enabled in file …
Based on what I have been able to find, this is because OpenSCAD has
not yet finished loading the code it uses for the object() function.
My code runs fine if I open my file in OpenSCAD, but there are certain
things that would be nice to do using *.bat files. Is there a way to
force OpenSCAD to finish loading the object() function before doing
the other tasks that may be done using the command line? Thanks!
Edit/Preferences/Features, enable it.
On 11/7/2025 9:03 PM, Nathan Sokalski via Discuss wrote:
I am using a *.bat file to render some of my *.scad files that use the
object() function of the Nightly Build (2025.11.06) However, the
output from the *.bat file says the following:
Oops, sorry, missed that this was CLI.
Add "--enable object-function".
Thank you so much! That worked great, I must have missed it in the output from --debug
Nathan Sokalski
njsokalski@hotmail.commailto:njsokalski@hotmail.com
From: Jordan Brown via Discuss discuss@lists.openscad.org
Sent: Saturday, November 8, 2025 12:14 AM
To: Nathan Sokalski via Discuss discuss@lists.openscad.org
Cc: Jordan Brown openscad@jordan.maileater.net
Subject: [OpenSCAD] Re: object function not available in nightly build
On 11/7/2025 9:03 PM, Nathan Sokalski via Discuss wrote:
I am using a *.bat file to render some of my *.scad files that use the object() function of the Nightly Build (2025.11.06) However, the output from the *.bat file says the following:
Oops, sorry, missed that this was CLI.
Add "--enable object-function".