03-18-2023, 10:58 AM
(03-17-2023, 10:18 PM)BaconWizard17 Wrote:(03-09-2023, 04:32 PM)Ofnuts Wrote: PS: This looks a lot like what my ofn-export-layer-combinations does... feel free to steal code.
Does it use the gimp_layer_new_from_visible method or the duplicating method?
That one does a gimp_layer_new_from_visible .
If you want to be fancy, you can use the save dialogs with RUN_INTERACTIVE and RUN_WITH_LAST_VALS, so you get an option dialog when saving the first image, and the rest reuses the same options. But when you use RUN_WITH_LAST_VALS Gimp saves the whole image and not just the layer, so you have to duplicate the "visible" layer into a new image just to save it.