Re: [Gimp-user] Scripting, toggles and accessing the application state

2016-10-01 Thread Rick Strong
Another approach is to duplicate the layer you are working on and put it 
above the original layer. Turning the dupe layer on/off will reveal the 
changes.


Rick

-Original Message- 
From: Simon Budig

Sent: Friday, September 30, 2016 7:24 PM
To: gimp-user-list@gnome.org
Subject: Re: [Gimp-user] Scripting, toggles and accessing the application 
state


Rick Strong (rnstr...@primus.ca) wrote:

Ctrl + Z = Undo
Ctrl + Y = Redo
Hold down Ctrl and do a two-finger dance to toggle.


This is unfortunately not true for german kezboards...

Bye,
   Simon

--
 si...@budig.de  http://simon.budig.de/
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list 


___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Scripting, toggles and accessing the application state

2016-10-01 Thread Rick Strong
I understand the technique having used Photoshop for 27 years. I have scripted 
Indesign, Pagemaker, Corel draw (made it draw pie charts with callouts from a 
simple list of data), Word, Excel. It was fun but the time I spent debugging 
was better put to use using the other side of my brain and being creative. 

That’s just me. 

Sans souci,
Rick

From: John Smith 
Sent: Saturday, October 01, 2016 3:16 AM
To: Rick Strong 
Cc: gimp-user-list@gnome.org 
Subject: Re: [Gimp-user] Scripting, toggles and accessing the application state

I answer on this thread, the other one (no subject) was another mistake of my 
part. 

So as Jan said we aren't all that fluent in typing. 

My personnal reason is that I used Photoshop for 21 years now and I consider 
that a program should yield to its users' needs and not the other way round. 

For example I need a toggle when working on an image for which I have a sketch. 
Sometimes I need to show the layer with the sketch, then hide it then show it 
then hide it to see what is on the sketch that I lost on the image I built. 
Pressing F8 repetitively in very rapid strokes generally do the trick. Don' 
forget to half close your eyes as well



Cordialement, 

John


http://johnsmithimages.net


2016-09-30 13:54 GMT+02:00 Rick Strong <rnstr...@primus.ca>:

  Ctrl + Z = Undo
  Ctrl + Y = Redo
  Hold down Ctrl and do a two-finger dance to toggle.

  Rick S.


  Question 3) As far as I understand it, it is not possible to have toggles
  at the moment. Ctrl z twice will cancel 2 actions instead of undoing and
  redoing the last action. Am I right?

  Cordialement,

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

  http://johnsmithimages.net
  ___
  gimp-user-list mailing list
  List address:gimp-user-list@gnome.org
  List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
  List archives:   https://mail.gnome.org/archives/gimp-user-list

___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list

Re: [Gimp-user] Scripting, toggles and accessing the application state

2016-10-01 Thread Ofnuts

On 01/10/16 09:16, John Smith wrote:

I answer on this thread, the other one (no subject) was another mistake of
my part.

So as Jan said we aren't all that fluent in typing.

My personnal reason is that I used Photoshop for 21 years now and I
consider that a program should yield to its users' needs and not the other
way round.


To some extent...; You can't take Excel and require it behaves like 
Photoshop. A program also has its own "philosophy", the more you stick 
to it, the happier you are. As they says the hard part is not learning 
Gimp, it's unlearning Photoshop.

For example I need a toggle when working on an image for which I have a
sketch. Sometimes I need to show the layer with the sketch, then hide it
then show it then hide it to see what is on the sketch that I lost on the
image I built. Pressing F8 repetitively in very rapid strokes generally do
the trick. Don' forget to half close your eyes as well


This is a two-lines script (plus 10 lines of boilerplate script 
registration code)

___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list

Re: [Gimp-user] Scripting, toggles and accessing the application state

2016-10-01 Thread John Smith
I answer on this thread, the other one (no subject) was another mistake of
my part.

So as Jan said we aren't all that fluent in typing.

My personnal reason is that I used Photoshop for 21 years now and I
consider that a program should yield to its users' needs and not the other
way round.

For example I need a toggle when working on an image for which I have a
sketch. Sometimes I need to show the layer with the sketch, then hide it
then show it then hide it to see what is on the sketch that I lost on the
image I built. Pressing F8 repetitively in very rapid strokes generally do
the trick. Don' forget to half close your eyes as well


Cordialement,

John
 

http://johnsmithimages.net

2016-09-30 13:54 GMT+02:00 Rick Strong :

> Ctrl + Z = Undo
> Ctrl + Y = Redo
> Hold down Ctrl and do a two-finger dance to toggle.
>
> Rick S.
>
>
> Question 3) As far as I understand it, it is not possible to have toggles
> at the moment. Ctrl z twice will cancel 2 actions instead of undoing and
> redoing the last action. Am I right?
>
> Cordialement,
>
> John
>  
>
> http://johnsmithimages.net
> ___
> gimp-user-list mailing list
> List address:gimp-user-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
> List archives:   https://mail.gnome.org/archives/gimp-user-list
>
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list

Re: [Gimp-user] Scripting, toggles and accessing the application state

2016-09-30 Thread Ofnuts

On 30/09/16 10:56, John Smith wrote:

Question 1) Can I add a layer mask, make it active, add some noise, blur
the thing, get a selection from a previously saved alpha channel and all
that sort of things through scripts. Don't tell me how, I just want to know
if I can do it.


Yes


Question 2) Can I access the application state through scripts? I mean is
it possible to know if a layer mask is already added to the active layer


Yes


or if the layer palette is visible?


No. Scripts have no direct control on the UI.


Question 3) As far as I understand it, it is not possible to have toggles
at the moment. Ctrl z twice will cancel 2 actions instead of undoing and
redoing the last action. Am I right?


There are parts of the UI that are toggles (for instance, Tab to 
show/hide dialogs, or Ctrl-T to show/hide the selection). It is normally 
useful to undo several steps in most applications, and I don't remember 
ever using an application where Ctrl-Z is a toggle as you describe (but 
there s no real standard for the "redo" shortcut)


You'll find there are two languages supported out of the box to write 
scripts: the historical script-fu (a LISP dialect),  and Python. Unless 
you are already well versed in LISP/Scheme, use Python.





___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Scripting, toggles and accessing the application state

2016-09-30 Thread Simon Budig
Rick Strong (rnstr...@primus.ca) wrote:
> Ctrl + Z = Undo
> Ctrl + Y = Redo
> Hold down Ctrl and do a two-finger dance to toggle.

This is unfortunately not true for german kezboards...

Bye,
Simon

-- 
  si...@budig.de  http://simon.budig.de/
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Scripting, toggles and accessing the application state

2016-09-30 Thread Rick Strong

Ctrl + Z = Undo
Ctrl + Y = Redo
Hold down Ctrl and do a two-finger dance to toggle.

Rick S.


Question 3) As far as I understand it, it is not possible to have toggles
at the moment. Ctrl z twice will cancel 2 actions instead of undoing and
redoing the last action. Am I right?

Cordialement,

John
 

http://johnsmithimages.net
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list