discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Render when loaded?

L
larry
Tue, Jun 10, 2025 8:37 PM

Have I inadvertently set something in preferences that causes a render
when I load a script?

If I run OpenSCAD and drag/drop a .scad file into it, it doesn't render
it immediately.

If I double-click on a .scad file, it loads, and immediately starts
rendering. Of course I can't immediately stop it, which is a real time
waster.

Or is it a bug?

Have I inadvertently set something in preferences that causes a render when I load a script? If I run OpenSCAD and drag/drop a .scad file into it, it doesn't render it immediately. If I double-click on a .scad file, it loads, and immediately starts rendering. Of course I can't immediately stop it, which is a real time waster. Or is it a bug?
JB
Jordan Brown
Tue, Jun 10, 2025 8:52 PM

On 6/10/2025 1:37 PM, larry via Discuss wrote:

Have I inadvertently set something in preferences that causes a render
when I load a script?

Quite possibly.  Look at the Design menu, at the "Automatic Reload and
Preview" option at the top.

If I run OpenSCAD and drag/drop a .scad file into it, it doesn't render
it immediately.

If I double-click on a .scad file, it loads, and immediately starts
rendering. Of course I can't immediately stop it, which is a real time
waster.

Or is it a bug?

It does seem like a bug if those two cases are handled differently. (But
my experiments have drag-and-drop previewing immediately, just like
double-click-to-open.)

On 6/10/2025 1:37 PM, larry via Discuss wrote: > Have I inadvertently set something in preferences that causes a render > when I load a script? Quite possibly.  Look at the Design menu, at the "Automatic Reload and Preview" option at the top. > If I run OpenSCAD and drag/drop a .scad file into it, it doesn't render > it immediately. > > If I double-click on a .scad file, it loads, and immediately starts > rendering. Of course I can't immediately stop it, which is a real time > waster. > > Or is it a bug? It does seem like a bug if those two cases are handled differently. (But my experiments have drag-and-drop previewing immediately, just like double-click-to-open.)
L
larry
Tue, Jun 10, 2025 10:34 PM

On Tue, 2025-06-10 at 13:52 -0700, Jordan Brown wrote:

On 6/10/2025 1:37 PM, larry via Discuss wrote:

Have I inadvertently set something in preferences that causes a
render when I load a script?

Quite possibly.  Look at the Design menu, at the "Automatic Reload
and Preview" option at the top.

I am running OpenSCAD version 2025.05.16.ai25460 (git c76900f9a)
on Ubuntu 22.04.5 LTS.

That box was not checked. Note that previously it was a render that it
did, and not a preview. When I check that box, it will preview as soon
as it loads, which is not nearly as bad, being, in general, shorter
than a render.

I then unchecked that box, and now it still previews when I double-
click the SCAD file, but does not preview when I load OpenSCAD and
drag/drop the same file into OpenSCAD.

I'm testing with a simple cube;

echo ($preview ? "preview" : "render");
cube(10);

In both attached images, 'Automatic Reload and Preview' was NOT
checked, but double-clicking on test1.scad gave me the result in the
attached test1.png

When I loaded OpenSCAD and drag/dropped test1.scad into it, test2.png
was the result.

If I run OpenSCAD and drag/drop a .scad file into it, it doesn't
render
it immediately.

If I double-click on a .scad file, it loads, and immediately starts
rendering. Of course I can't immediately stop it, which is a real
time
waster.

Or is it a bug?

 
 It does seem like a bug if those two cases are handled differently.
(But my experiments have drag-and-drop previewing immediately, just
like double-click-to-open.)
 
 

On Tue, 2025-06-10 at 13:52 -0700, Jordan Brown wrote: > On 6/10/2025 1:37 PM, larry via Discuss wrote: > > Have I inadvertently set something in preferences that causes a > > render when I load a script? > Quite possibly.  Look at the Design menu, at the "Automatic Reload > and Preview" option at the top. I am running OpenSCAD version 2025.05.16.ai25460 (git c76900f9a) on Ubuntu 22.04.5 LTS. That box was not checked. Note that previously it was a render that it did, and not a preview. When I check that box, it will preview as soon as it loads, which is not nearly as bad, being, in general, shorter than a render. I then unchecked that box, and now it still previews when I double- click the SCAD file, but does not preview when I load OpenSCAD and drag/drop the same file into OpenSCAD. I'm testing with a simple cube; echo ($preview ? "preview" : "render"); cube(10); In both attached images, 'Automatic Reload and Preview' was NOT checked, but double-clicking on test1.scad gave me the result in the attached test1.png When I loaded OpenSCAD and drag/dropped test1.scad into it, test2.png was the result. > > If I run OpenSCAD and drag/drop a .scad file into it, it doesn't > > render > > it immediately. > > > > If I double-click on a .scad file, it loads, and immediately starts > > rendering. Of course I can't immediately stop it, which is a real > > time > > waster. > > > > Or is it a bug? >   >  It does seem like a bug if those two cases are handled differently. > (But my experiments have drag-and-drop previewing immediately, just > like double-click-to-open.) >   >  
JB
Jordan Brown
Tue, Jun 10, 2025 11:08 PM

On 6/10/2025 3:34 PM, larry wrote:

I am running OpenSCAD version 2025.05.16.ai25460 (git c76900f9a)
on Ubuntu 22.04.5 LTS.

Hmm.  Happens to be the same version I'm running, though I'm on Windows.

I then unchecked that box, and now it still previews when I double-
click the SCAD file, but does not preview when I load OpenSCAD and
drag/drop the same file into OpenSCAD.

Hmm.  Doesn't preview for me in either case.

On 6/10/2025 3:34 PM, larry wrote: > I am running OpenSCAD version 2025.05.16.ai25460 (git c76900f9a) > on Ubuntu 22.04.5 LTS. Hmm.  Happens to be the same version I'm running, though I'm on Windows. > I then unchecked that box, and now it still previews when I double- > click the SCAD file, but does not preview when I load OpenSCAD and > drag/drop the same file into OpenSCAD. Hmm.  Doesn't preview for me in either case.
RW
Roger Whiteley
Wed, Jun 11, 2025 7:43 AM

I have the box in Design Automatic Preview unchecked and loading files
follows that setting.  Debian 12. v2024.12.30

On 11/06/2025 00:08, Jordan Brown wrote:

On 6/10/2025 3:34 PM, larry wrote:

I am running OpenSCAD version 2025.05.16.ai25460 (git c76900f9a)
on Ubuntu 22.04.5 LTS.

Hmm.  Happens to be the same version I'm running, though I'm on Windows.

I then unchecked that box, and now it still previews when I double-
click the SCAD file, but does not preview when I load OpenSCAD and
drag/drop the same file into OpenSCAD.

Hmm.  Doesn't preview for me in either case.

I have the box in Design Automatic Preview unchecked and loading files follows that setting.  Debian 12. v2024.12.30 On 11/06/2025 00:08, Jordan Brown wrote: > On 6/10/2025 3:34 PM, larry wrote: >> I am running OpenSCAD version 2025.05.16.ai25460 (git c76900f9a) >> on Ubuntu 22.04.5 LTS. > > Hmm.  Happens to be the same version I'm running, though I'm on Windows. > >> I then unchecked that box, and now it still previews when I double- >> click the SCAD file, but does not preview when I load OpenSCAD and >> drag/drop the same file into OpenSCAD. > > Hmm.  Doesn't preview for me in either case. >