Re: [Gimp-developer] Watching gui commands with console

To my estimation it would be great if a readable series of transformations would always be recorded. But I am 
not knowledgeable about the code of Gimp. - Since the GUI just figures out necessary parameters, e.g. the box 
coordinates for a crop operation, the creation of layers and all other operations done with them, finally it 
has to call them all with those parameters substituted into the parameters of the functions themselves. I 
expect there already is or should be relatively few places, where the function names and the parameters could 
exist in a string per function call. This would be the right place to record them. If the operation is jut an 
undo operation, it would be the right place to also remove the last item from the stack of operations.

I think, there must be some mechanism of this kind already in Gimp- or how else"undoes" Gimp its operations 
if told to do so? Does it really save each completeintermediatestep on a stack in order to undo operations?

Such a recording of functions might even include calls to plugin functions provided they don't run dialogues 
themselves: if they are just invoked, their invocation (plus any parameters, if they are also handed down) 
might not only be used for calling the operational part of the extension, but also to save their names and 
parameters just for documentation purposes.

However for extensions which run their own interactive dialogues, an interface to push another "real function 
call with parameters" becomes necessary to make such a feature universally feasible.

Am 28.04.20 um 23:31 schrieb Ofnuts:
On 28/04/2020 12:48, Metin Barış via gimp-developer-list wrote:
Hello Dear all,

I have a question to experienced developers here, i am new on using

Is there any way of console log or watch the commands running from GUI side
of the program ?

For example whenever i run a crop for an image on GIMP side i would like to
tail such command "(gimp-image-cropped image)" from console or log it
somewhere else.
or whenever i open an image i would like to watch (gimp-load-image
imagepath name)

Any kind of suggestion would be greatly appreciated

Recurring question... I wonder how many unfinished Gimp Universal
Macro-Recorders there are out there.

AFAIK there is no such capability, and furthermore there is not a
one-to-one mapping between GUI actions and API calls.

gimp-developer-list mailing list
List address:    gimp-developer-list gnome org
List membership:
List archives:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]