Run script on action - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Run script on action (/Thread-Run-script-on-action) |
Run script on action - rchav - 08-13-2018 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 RE: Run script on action - Ofnuts - 08-13-2018 (08-13-2018, 02:54 PM)rchav Wrote: Hi there, 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). |