[Gimp-user] Controlling the interface through scripts



Hello everybody,


I am considering moving from Photoshop to The Gimp entirely.

I found answers for most of my concerns but there is still one point that
worries me.


Am I able to write scripts doing something like below.

if (keypressed=f7)

{

if(layerpalette.isVisible){

layerpalette.hide

}else(layerpalette.show)

}


I mean can I access the interface and control it through scripts? The idea
of the “script” above is to build a toggle to hide and show the layer
palette by pressing the f7 key.


Another example:

if(keypressed=f3){if(activelayer.layermask.exists){activelayer.layermask.select}else{activelayer.layermask.add}
}

If the f3 key is pressed, if there is a layer mask on the active layer it
should be activated and if not an empty layer mask should be added and
activated.


Is it possible to do things like that with the Gimp 2.8x?

Cordialement,

John
<http://johnsmithimages.net> <http://johnsmithimages.net>

http://johnsmithimages.net


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