[Gimp-gui] About the "floating selection"



# Proposition

So our idea (at ZeMarmot project) would be:

- When pasting on a layer, just create a new layer over the selected ones. Done. No floating selection anymore.
- When pasting on a layer mask, still make a floating selection (but probably name it "Floating mask" because the name "Floating *selection*" is weird anyway).


Hi,

The proposed suggestion sounds good to me, I use the convenient "floating mask" everyday, to subtract from or add to a mask.
A big side benefit would be the fixing of the lost transform feature, which is a regular problem for me.


Description of the bug

using the unified transform tool on a floating selection is possible,

however the transform is lost if you convert the floating selection to a new layer.




Although there will be some scripts to adjust that deal with the floating layer.
eg.

(define (sweeney_transferLayerBlended sourceImage targetImage sourceLayer targetLayer opacity mode sharpen)
(let*
(
(activeLayer 0)
)

(if(> sourceLayer 0)(gimp-edit-copy sourceLayer))
(if(= sourceLayer 0)(gimp-edit-copy-visible sourceImage))

(set! activeLayer (car (gimp-edit-paste targetLayer 1)))
(gimp-layer-set-opacity activeLayer opacity)
(gimp-layer-set-mode activeLayer mode)
(if(> sharpen 0)(plug-in-unsharp-mask 0 targetImage activeLayer 3 sharpen 0))

(gimp-floating-sel-anchor activeLayer)
(set! activeLayer (car (gimp-image-get-active-drawable targetImage)))

(when(= (car (gimp-item-is-layer-mask activeLayer)) 1) ; if selected mask
(set! activeLayer (car(gimp-layer-from-mask activeLayer)))
)

activeLayer
)
)

(script-fu-register "sweeney_transferLayerBlended"
""
"Copy item into a layer with blend options" ;description
"Mark Sweeney"
"Mark Sweeney"
"2020"
""

)






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]