|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
GIMP GAP questionHow can I get the layer id of the current layer to use in a GAP layer
operation? Is there already a way to get it in GAP code? _______________________________________________ Gimp-developer mailing list Gimp-developer@... https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer |
|
|
Re: GIMP GAP questionQuoting Mirai Warren <the.future.comes.mw@...>:
> How can I get the layer id of the current layer to use in a GAP layer > operation? Is there already a way to get it in GAP code? Whenever specifying layers in GAP dialogs, the layers are described by their stack positions -- by default: 0=topmost, 1=second from top, etc (there is usually an option to reverse the numbering so that 0=background, 1=second from bottom, etc). These stack positions will be converted to appropriate layerIDs when PDB or libgimp functions are called. If this is not sufficient for what you are attempting, perhaps you could elaborate on your goals. _______________________________________________ Gimp-developer mailing list Gimp-developer@... https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer |
|
|
Re: GIMP GAP questionWhat I want to do is similar to the "Duplicate Continue" plugin, but
instead of duplicating the entire frame, only the current layer would be duplicated and added to the layer stack of the following frame, and a new frame would not be created. What I tried was to switch out gap_lib_image_file_copy with gap_layer_copy_to_image but I don't know how to get the current layer as the source layer. I hope that's clear, and thank you for your response. _______________________________________________ Gimp-developer mailing list Gimp-developer@... https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer |
|
|
Re: GIMP GAP questionQuoting Mirai Warren <the.future.comes.mw@...>:
> What I want to do is similar to the "Duplicate Continue" plugin, but > instead of duplicating the entire frame, only the current layer would > be duplicated and added to the layer stack of the following frame, and > a new frame would not be created. What I tried was to switch out > gap_lib_image_file_copy with gap_layer_copy_to_image but I don't know > how to get the current layer as the source layer. The short answer: source_layer_id = gimp_image_get_active_layer(source_image_id) You should be aware, however, of how GAP determines the "active layer" for each frame; it varies depending upon the settings of the "AL-Tracking" mode specified in the VCR Navigator (this mode being one of "by layername", "by layerstack position", or "off"). I would also point out that the task you are attempting can be accomplished using GAP's Onionskin capabilities. The configuration options for onionskinning are described in the following document: http://git.gnome.org/cgit/gimp-gap/tree/docs/reference/txt/plug-in-gap-onionskin-configuration.txt _______________________________________________ Gimp-developer mailing list Gimp-developer@... https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer |
| Free embeddable forum powered by Nabble | Forum Help |