Gimp-Forum.net

Full Version: Run script on action
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

Is there a way to trigger a script once an action has occurred? I specifically want to run a simple script after the current selected layer has changed (via some user action, filter, etc)

Or perhaps there is another mechanism for this besides plugins?

Thanks in advance for any help
(08-13-2018, 02:54 PM)rchav Wrote: [ -> ]Hi there,

Is there a way to trigger a script once an action has occurred? I specifically want to run a simple script after the current selected layer has changed (via some user action, filter, etc)

Or perhaps there is another mechanism for this besides plugins?

Thanks in advance for any help

Not as far as I know. And also as far as I know, it's a design point in Gimp that scripts/filters cannot interact with Gimp's user interface.

And, in practice, filters/scripts don't change the active layer explicitly: APIs usually take a layer parameter, which is set by the script (and is often the active layer, itself a default parameter for the script). The active layer can be changed implicitly in some cases (when merging the active layer, for instance).