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-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

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 -

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