10-19-2022, 08:44 AM
(10-18-2022, 11:18 PM)MichaJo Wrote:(10-18-2022, 10:47 PM)Ofnuts Wrote: AFAIK layer visibility is still there in Gimp3. The big difference is that Gimp3 has multiple layer selection that replace chain links (it's a recent change in 2.99.12, so your script may have to register as being able to handle multiple layers on input (at least this is how it works for plugins now)
But in 3.0 they've removed quote: "..the link feature and added instead a “layer set” feature..".
But that's the flag (link feature / chain icon) i use to choose the layers to be toggled in their visibility.
So my script won't work in 3.0.
Yes... but it is half-broken in 2.10 already... Chain-linking is really for transforms. Here you can't rotate one of your layers without having to unlink/relink.
What you could be using is either:
- Color tags: gimp-item-get-color-tag, and gimp-item-set-color-tag and your script looks at these to toggle visibility
- Use layer groups (possibly with the new "pass-through" attribute) and toggle group visibility (and then you don't need a script)