Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Creating a guide for GIMP

Mon Nov 18, 2019 7:06 am

Hello! I hope I can get help here because there are not many resources available supporting GIMP
So, for my undergraduate final project I am creating a software guide which is voice based and I want to show how a particular task is done as the user requests. For example; when an action needs to be undone, the program show go to the edit menu in the menu bar and click on undo while explaining to the user the reason for that.

So far, I have created a few simple plugins and I need help to create the part where it shows how everything is done.

Please do ask any questions to clarify the functioning of the application I have explained above

Re: Creating a guide for GIMP

Mon Nov 18, 2019 10:19 am

ElinaPeace wrote:I need help to create the part where it shows how everything is done.


That is going to be a lot of voice.

A good place to start is here:
https://www.gimp.org/docs/

Re: Creating a guide for GIMP

Mon Nov 18, 2019 11:11 am

Hello ElinaPeace on the forum

Forgive me - but I don't understand what you are asking for.
If you are programming in Python, you can disable / enable the options:
- pdb.gimp_image_undo_group_start (image)
- pdb.gimp_context_push ()
Any example of your plugin?

Re: Creating a guide for GIMP

Mon Nov 18, 2019 8:03 pm

MareroQ wrote:Hello ElinaPeace on the forum

Forgive me - but I don't understand what you are asking for.
If you are programming in Python, you can disable / enable the options:
- pdb.gimp_image_undo_group_start (image)
- pdb.gimp_context_push ()
Any example of your plugin?


Okay so, in my plugin I want to show visually to the user how something is done without simply automating, I wanna go step wise.

Re: Creating a guide for GIMP

Tue Nov 19, 2019 2:42 am

ElinaPeace wrote:
MareroQ wrote:Hello ElinaPeace on the forum

Forgive me - but I don't understand what you are asking for.
If you are programming in Python, you can disable / enable the options:
- pdb.gimp_image_undo_group_start (image)
- pdb.gimp_context_push ()
Any example of your plugin?


Okay so, in my plugin I want to show visually to the user how something is done without simply automating, I wanna go step wise.


This is going to be very difficult. Plugins/scripts cannot act on the GUI by design, so your users will only see the results (even if in some case they can see things happening while the script runs).

In addition there is no direct mapping between GUI actions and the API; some simple GUI actions require more code than one would expect (Image>Scale image, for instance). In 2.10 this is even worse since the new GEGL-based tools & filters have no usable API.

In short, to pull this off, you have to be an external application than can tell where things are on the Gimp UI and send the appropriate signals to simulate button clicks and mouse moves. There areapplications used to perform automated software tests that can do this (but I haven't got any to recommend).
Post a reply