Re: [Gimp-developer] How to get color tag of layer in python plugin script?

2018-02-23 Thread Carol Spears
On Thu, Feb 22, 2018 at 11:06 PM, John Tapsell wrote: > On 23 Feb 2018 10:57, "Carol Spears" wrote: > > > > On Thu, Feb 22, 2018 at 7:37 PM, John Tapsell wrote: > >> Thanks! It would be cool if it was a property on the layer

Re: [Gimp-developer] How to get color tag of layer in python plugin script?

2018-02-22 Thread John Tapsell
On 23 Feb 2018 10:57, "Carol Spears" wrote: On Thu, Feb 22, 2018 at 7:37 PM, John Tapsell wrote: > Thanks! It would be cool if it was a property on the layer itself in > python, and if there was a version that returned the actual colour name >

Re: [Gimp-developer] How to get color tag of layer in python plugin script?

2018-02-22 Thread Carol Spears
On Thu, Feb 22, 2018 at 7:37 PM, John Tapsell wrote: > Thanks! It would be cool if it was a property on the layer itself in > python, and if there was a version that returned the actual colour name > instead of a number. (there isn't, right?) > > /Filers/Python Fu/Console has

Re: [Gimp-developer] How to get color tag of layer in python plugin script?

2018-02-22 Thread John Tapsell
Thanks! It would be cool if it was a property on the layer itself in python, and if there was a version that returned the actual colour name instead of a number. (there isn't, right?) On 22 Feb 2018 12:18, "Carol Spears" wrote: > > > On Wed, Feb 21, 2018 at 9:53 PM,

Re: [Gimp-developer] How to get color tag of layer in python plugin script?

2018-02-21 Thread Carol Spears
On Wed, Feb 21, 2018 at 9:53 PM, Partha Bagchi wrote: > According to ./libgimp/gimpitem_pdb.c:879, gimp_item_get_color_tag gets > the color tag of the specified item. > > Does that help? > color_tag = pdb.gimp_item_get_color_tag(item) I noticed that the layers dialog got

Re: [Gimp-developer] How to get color tag of layer in python plugin script?

2018-02-21 Thread John Tapsell
Here's a screenshot : https://goo.gl/images/FE4f5M On 22 Feb 2018 11:32 am, "Carol Spears" wrote: > > > On Wed, Feb 21, 2018 at 9:16 PM, John Tapsell wrote: > >> Hi, >> >> How can I get the color tag of a layer in a python plugin script please? >>

Re: [Gimp-developer] How to get color tag of layer in python plugin script?

2018-02-21 Thread Carol Spears
On Wed, Feb 21, 2018 at 9:16 PM, John Tapsell wrote: > Hi, > > How can I get the color tag of a layer in a python plugin script please? > > Not sure what you mean by "color tag" but the color picker can be invoked with: color = pdb.gimp_image_pick_color(image, drawable, x,