Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run script on action
#1
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
Reply
#2
(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).
Reply


Forum Jump: