Dump Pictures tries to dump pictures into \Program Files\OpenSCAD
Describe the bug When I use the Dump Pictures option under animation, it works for simple models (e.g. rotating a cube) but as the complexity increases, it fails to store any PNG files in the folder containing the script.
To Reproduce Steps to reproduce the behavior:
- Enter the code shown below in the OpenSCAD client. Save it to a folder you don't mind having a bunch of image files in.
- In the Animation panel, enter FFS=20, Steps = 30.
- Use menu View > View All.
- Tick the Dump Pictures checkbox.
- If it's not already running, press Play on the animation.
- Wait for the Dump Pictures checkbox to uncheck itself.
- Look for the PNG output files.
Expected behavior Expected to find 30 PNG files in the same folder I saved the script into. Actual behavior: no PNG files were created.
Code reproducing the issue
$fa=1; $fs=.3; r = 2; lim = 4; for(x = [0:lim], y = [0:lim], z = [0:lim]) { translate([x,y,z]*5) rotate([x,y,z]*((360/(lim+1))-1)) rotate([0,0,360*$t]) translate([r,0,0]) sphere(r/4); }
Screenshots
Environment and Version info (please complete the following information):
- OS: Windows 11
- System: Intel PC 64-bit
- OpenSCAD Version 2025.06.01 (git 7245089d3) from OpenSCAD.org website.
Library & Graphics card information Let me know if this is needed.
Additional context Seems to be a regression, I know I've done this before with quite complex models.
Source: openscad/openscad