(08-06-2023, 05:27 AM)PixLab Wrote:(08-05-2023, 08:42 PM)Ofnuts Wrote:(08-05-2023, 12:19 PM)rich2005 Wrote: I do not know why it should bring up the regular export dialogue you show.
Can be pretty handy when you don't want the defaults. In some of my scripts I use the RUN_INTERACTIVE & RUN_WITH_LAST_VALS so the script asks for the export parameters just for the first item.
You give me hope...
I did tried
but I got an error, it seems that script/scheme has hard time with "&" (AND?)Code:
(gimp-file-save RUN-INTERACTIVE & RUN-WITH-LAST-VALS
What could be the grammar in scheme for that?
But maybe I got a XY problem, my goal is to make this script to work to export as webp too, but the export quality of webp is 0 (zero) without changing the RUN-NONNTERACTIVE, thus webps are full of pixelated squares, while others format like jpg/png/etc are just fine.
Just out of the box, scheme looks to me like hieroglyph > I found python a lot more human readable
I'm not using both flags together, but in the loop to save the files, the first file is saved with RUN_INTERACTIVE and the rest is saved with RUN_WITH_LAST_VALS. And that doesn't end there, file-save-* plugins have different behavior, depending on the RUN_* they save the active layer or the whole image, so the code does a layer_new_from_visible to a new image and saves that.