
WARNING: Ignoring unknown variable 'cube' in file test.scad, line 19 OpenSCAD-2021.01-x86_64.AppImage -o 'test.stl' 'test.scad' -D filename1=cube.stl -D filename2=cube.stl

However, if I test it in command line, no value is initialized, and by the way, I have no idea what are both those warning on line 19 and 20 while my scad file only has 16 lines: MyPrompt>. WARNING: Ignoring unknown variable 'filename2' in file test.scad, line 14Ĭompiling design (CSG Products generation).ĮRROR: Unsupported file format while trying to import file '""', import() at line 14Ĭompiling design (CSG Products normalization). WARNING: Ignoring unknown variable 'filename2' in file test.scad, line 5ĮCHO: filename1 = "cube.stl", filename2 = undef If I test myscript.scad with the gui version of openSCAD, it gives the following result (which is expected): Compiling design (CSG Tree generation). So I made a little test script: echo ("START") Įcho(filename1=filename1, filename2=filename2) However, it appears, the -D options doesn't do what I expect. So I wrote an openSCAD program and wanted to script from the command line, but it doesn't work and I can't figure out why.Īccording to the man page, I thought the following command would work but it doesn't (Ah, also I use an appimage version of openSCAD (for in case it would be important): OpenSCAD-2021.01-x86_64.AppImage -o 'myscript.scad' -D filename= I want to apply a certain modification on a bunch of stl files.
