Gimp-Forum.net
Translating scripts back into steps - 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: Translating scripts back into steps (/Thread-Translating-scripts-back-into-steps)



Translating scripts back into steps - Espermaschine - 02-22-2018

I have a bunch of scripts i'd like to study/reverse engineer.
Sadly i dont understand the scripting language, and its a lot of work to look up every step with the console.

Is there a way to "play" a script in slowmotion so i can watch the steps, or some kind of verbose log or something ?


RE: Translating scripts back into steps - Ofnuts - 02-22-2018

Nothing for this purpose. ... But what you can do, however, is:
  • remove the calls that alter the undo stack (usually, undo_group_start() and undo_group_end(), that put all the script actions into a single undo/redo step).
  • play the script (with a big undo stack...)
  • undo  (Ctr-Z) repeatedly until you are back to the initial state,
  • play the Gimp actions step by step using Edit>Redo (Ctrl-Y).

If there are too many steps, you won't be able to redo them manually anyway Smile


RE: Translating scripts back into steps - Espermaschine - 02-23-2018

Nice !

Its even better with the History tab.