Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GIMP Script-fu/Python-fu: apply filter or color to all layers?
Yes and no...
  • In the general case, yes, there are few things(*) that you cannot do to a layer with a script, so it could be a Small Matter Of Programming to iterate the process over the layers.
  • For many plugins, it is often quite simple since the plugin API takes the same parameters as the plugin GUI (thoe where the GUI is auto-generated from the API)
  • But there are plugins that have a different set of parameters
  • And there are tools where the API is very different from the GUI, when it exists at all (freehand selection, quick mask..)
  • And you have to consider a mix of the above...
  • And all the above assumes that you write a dedicated script for each target processing.
  • There may be ways using to write a sufficiently general code that could take a simple plugin (second item above), discover the parameters, ask the user for parameters, and iterate it, but if you want to use two scripts in sequence you will have to manage all the parameters of all the scripts, when in practice parameters of the scripts are often interrelated.
So, all in all, a lot of effort for not that much value (unless I am missing something...).

A completely different way of solving the problem is to transform the image frames into a tile sheet, process the sheet manually wit the full power of the GUI, and then split the tile sheet into frames when done (assuming this produces an image of manageable size).

(*) but these exist...

PS: also answered on StackOverflow

Messages In This Thread
RE: GIMP Script-fu/Python-fu: apply filter or color to all layers? - by Ofnuts - 06-14-2018, 08:36 PM

Forum Jump: