Re: [Gimp-developer] Getting the ID of a nested layer on GIMP 2.7.1

2010-10-18 Thread Gino D
On Fri, Oct 15, 2010 at 1:59 PM, LightningIsMyName
lightningismyn...@gmail.com wrote:

 Try gimp_item_is_group to check if a layer is a group layer, Then you
 can use gimp_item_get_children (on the group layers) to get the
 children by their order (topmost to bottomost). Finally, you can use
 gimp_item_get_parent to get the parent layerof a layer inside a layer
 group.

 ~LightningIsMyName


On Fri, Oct 15, 2010 at 4:57 PM, Martin Nordholts ense...@gmail.com wrote:

 Also note that the latest code from git is packaged in tarballs here
 each night:
 ftp://gimptest.flamingtext.com/pub/nightly-tarballs/

  / Martin


Thanks for the hints and the link.

Sorry if my question seems trivial (unfortunately, I'm still a newbie
in this field), but out of curiosity are those nightly tarballs
suitable for building GIMP under Windows too?
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Getting the ID of a nested layer on GIMP 2.7.1

2010-10-15 Thread Gino D
Hi.

Correct me if I'm wrong, but I have seemed to notice that the
gimp-image-get-layers procedure, when running on GIMP 2.7.1, doesn't
return the identifiers of the layers nested within groups, while
yielding the ones of unattached layers and layer groups.
So, how may such identifiers be obtained? Is there any
procedure/stratagem for this purpose?

Thanks in advance.
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Getting the ID of a nested layer on GIMP 2.7.1

2010-10-15 Thread LightningIsMyName
Hello,

Try gimp_item_is_group to check if a layer is a group layer, Then you
can use gimp_item_get_children (on the group layers) to get the
children by their order (topmost to bottomost). Finally, you can use
gimp_item_get_parent to get the parent layerof a layer inside a layer
group.
Note - these function are not present in GIMP 2.7.1, you'll need to
get the latest source and build it to gain access to these functions
(they are documented there like the rest of the PDB functions).

~LightningIsMyName

On Fri, Oct 15, 2010 at 1:19 PM, Gino D ginodo...@gmail.com wrote:

 Hi.

 Correct me if I'm wrong, but I have seemed to notice that the
 gimp-image-get-layers procedure, when running on GIMP 2.7.1, doesn't
 return the identifiers of the layers nested within groups, while
 yielding the ones of unattached layers and layer groups.
 So, how may such identifiers be obtained? Is there any
 procedure/stratagem for this purpose?

 Thanks in advance.
 ___
 Gimp-developer mailing list
 Gimp-developer@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Getting the ID of a nested layer on GIMP 2.7.1

2010-10-15 Thread Martin Nordholts
On 10/15/2010 01:59 PM, LightningIsMyName wrote:
 Note - these function are not present in GIMP 2.7.1, you'll need to
 get the latest source and build it to gain access to these functions
 (they are documented there like the rest of the PDB functions).

Also note that the latest code from git is packaged in tarballs here 
each night:
ftp://gimptest.flamingtext.com/pub/nightly-tarballs/

  / Martin


-- 

My GIMP Blog:
http://www.chromecode.com/
Nightly GIMP, GEGL, babl tarball builds
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer