RSS/Atom feed Twitter
Site is read-only, email is disabled

Getting the ID of a nested layer on GIMP 2.7.1

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Getting the ID of a nested layer on GIMP 2.7.1 Gino D 15 Oct 11:19
Getting the ID of a nested layer on GIMP 2.7.1 LightningIsMyName 15 Oct 11:59
Gino D
2010-10-15 11:19:25 UTC (about 14 years ago)

Getting the ID of a nested layer on GIMP 2.7.1

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.

LightningIsMyName
2010-10-15 11:59:13 UTC (about 14 years ago)

Getting the ID of a nested layer on GIMP 2.7.1

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