Re: [Gimp-developer] How to get color tag of layer in python plugin script?
On Thu, Feb 22, 2018 at 11:06 PM, John Tapsellwrote: > 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 >> instead of a number. (there isn't, right?) >> >> /Filers/Python Fu/Console has a browser button that gives a > searchable list of what can be done. I suggest that you search for "tag". > > Thanks - I don't see anything other than the get and set function, so I > think this confirms that there is no method for getting the color tag as a > string. This is something that needs to be converted manually I think. > I was pleased to find that the new Layers Dialog is not just a pretty face carol ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] How to get color tag of layer in python plugin script?
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 > instead of a number. (there isn't, right?) > > /Filers/Python Fu/Console has a browser button that gives a searchable list of what can be done. I suggest that you search for "tag". Thanks - I don't see anything other than the get and set function, so I think this confirms that there is no method for getting the color tag as a string. This is something that needs to be converted manually I think. ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] How to get color tag of layer in python plugin script?
On Thu, Feb 22, 2018 at 7:37 PM, John Tapsellwrote: > 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 a browser button that gives a searchable list of what can be done. I suggest that you search for "tag". carol ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] How to get color tag of layer in python plugin script?
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, 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 really large. Thanks for the pointer! > > carol > > ___ >>> gimp-developer-list mailing list >>> List address:gimp-developer-list@gnome.org >>> List membership: https://mail.gnome.org/mailman >>> /listinfo/gimp-developer-list >>> List archives: https://mail.gnome.org/archives/gimp-developer-list >>> >> >> > ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] How to get color tag of layer in python plugin script?
On Wed, Feb 21, 2018 at 9:53 PM, Partha Bagchiwrote: > 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 really large. Thanks for the pointer! carol ___ >> gimp-developer-list mailing list >> List address:gimp-developer-list@gnome.org >> List membership: https://mail.gnome.org/mailman >> /listinfo/gimp-developer-list >> List archives: https://mail.gnome.org/archives/gimp-developer-list >> > > ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] How to get color tag of layer in python plugin script?
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? >> >> > 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, y, sample_merged, > sample_average, average_radius) > > carol > ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] How to get color tag of layer in python plugin script?
On Wed, Feb 21, 2018 at 9:16 PM, John Tapsellwrote: > 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, y, sample_merged, sample_average, average_radius) carol ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list