07-13-2022, 08:52 PM
(This post was last modified: 07-13-2022, 09:00 PM by c_______z______.)
Hi, I am brand new to gimp scripting and still figuring out the basics. I'd like to find out how to perform a translation on only the pixels of a layer that are within a selection. Basically the equivalent of doing this in the UI: perform selection, hold down Ctrl-Alt, then click and drag.
I can create a selection just fine, but I don't know how to turn the pixels inside the selection into a floating selection. I assume once I do that, I can just use gimp-item-transform-translate on the floating selection?
Thanks!
I figured it out: the procedure to use is gimp-selection-float, which performs the translation as well. Just pass in the desired layer as the drawable
I can create a selection just fine, but I don't know how to turn the pixels inside the selection into a floating selection. I assume once I do that, I can just use gimp-item-transform-translate on the floating selection?
Thanks!
I figured it out: the procedure to use is gimp-selection-float, which performs the translation as well. Just pass in the desired layer as the drawable