Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Undo Operations in a Script
#4
(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.
Reply


Messages In This Thread
Undo Operations in a Script - by BaconWizard17 - 03-08-2023, 11:57 PM
RE: Undo Operations in a Script - by Ofnuts - 03-09-2023, 04:32 PM
RE: Undo Operations in a Script - by Ofnuts - 03-18-2023, 10:58 AM

Forum Jump: