12-07-2023, 12:00 AM
(12-06-2023, 10:21 PM)PixLab Wrote:(12-06-2023, 05:13 PM)Ofnuts Wrote: With a little effort, you can pop up the save dialog parameters only once for the first image, and reuse the settings for the other images, and avoid to edit the script
Indeed that would be very nice, and I thought about it as I think it's the right way especially for the user, but it's beyond my actual abilities with Scheme, for example yesterday I did struggle to understand that I did not need to declare multiple conditions (cond ...) for the script to work properly
I tried with RUN-WITH-LAST-VALS but it does not open a dialog it does it like RUN-NONINTERACTIVE, and when I try a combination of RUN-INTERACTIVE and RUN-WITH-LAST-VALS, I got errors, my "knowledge" (if I can say that) is very-very limited. (maybe I need to make a list of RUN-INTERACTIVE / RUN-WITH-LAST-VALS and grab the one with "(car" or "(cdr" but i need to learn more about those)
The thing is that it's quite hard to find help/resources or just some references about GIMP Scheme on the internet.
(12-06-2023, 05:13 PM)Ofnuts Wrote: (and by the way, if you edit the script while Gimp is running, you have to refresh the scripts to get Gimp to use the new version).
Yes indeed, between the Calendar last time and yesterday with this script I'm seriously thinking to add a shortcut to the Refresh Scripts, I cannot count how many time yesterday I did refresh, that was exhausting
The trick is to use RUN_INTERACTIVE on the first iteration and RUN_WITH_LAST_VALS on the next. There are some gotchas, because the varoius file plugins don't react all the same way with these values, some save the layer and other save the whole image so eventually the only sane thing to do is to copy the "new from visible" to another image, and save that.