Page 1 of 1

Set Transparency

Posted: 09 Apr 2021, 15:09
by Thierry
Following a discussion we had a few weeks ago, here a panel that restore an old TVPaint 10 feature about setting the Opacity of a layer.
set_transparency.tvpx
(9 KiB) Downloaded 332 times

There are 2 buttons in this panel:
transparency.PNG
transparency.PNG (2.64 KiB) Viewed 4016 times
When you click on either of them, a pop-up will appear:
transparency2.PNG
transparency2.PNG (2.15 KiB) Viewed 4016 times
Asking you a value for the transparency.

The first button will apply the value you entered to the current layer only, and the second button will apply it to the layers of the same color group as the current layer.

Re: Set Transparency

Posted: 14 Apr 2021, 09:54
by Peter Wassink
Thank you thierry for this.

i am now trying to make it even more failproof and easy for animators
i want buttons to set the right opacity for groups in one click

so say we need always to have the layers of group 4 (GroupColor 4) be opacity (LayerDensity) 50%
how would i make a button that does that?

i see this command:|

script: set_transparency.grg

this pops up a requester but i dont know how to simply have it a fixed value
and how do i acces this script?
the embeded george script is empty, its not clear how that part of the edit custompanel actions works.