Page 1 of 1

Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 10 May 2017, 17:22
by meslin
I noticed that there are a couple of requests for erasing half of the opacity of a channel.
Some scripts distort the resulting blue toward green. I addressed this by adjusting the tv_pixelmatrix to be .5 for the color channel being reduced.
This means reducing the blue by half would be "tv_pixelmatrix 1 0 0 0 0 0 1 0 0 0 0 0 .5 0 0 0 0 -0.5 1 0" - This seems to give a balanced color result in my tests with some rainbow gradients.
HalfErase.png
HalfErase.png (73.85 KiB) Viewed 1950 times
If you push it about 5-6 times it totally eliminates the channel's presence (remember, half of half is not zero). Give it a shot, improve it, whatever!

Thanks,
David

Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 10 May 2017, 17:36
by meslin
Oh - I couldn't figure out how to remove 50% of the white without altering the color...maybe someone can help with that...

Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 11 May 2017, 15:41
by NathanOtano
That's sooo nice, thanks! :)
Maybe you can try to attenuate the whole alpha then get back the alpha with another pixelmatric on colors alpha?
Also I'd stack multiple pixelmatric buttons to be sure to kill an alpha with one button, depending on people's need to attenuate or remove a color.

I have some related scripts here that can help other people : http://forum.tvpaint.com/viewtopic.php?f=11&t=9927

Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 11 May 2017, 16:39
by meslin
Knew you'd come through Nathan! :mrgreen: Thanks for suggestions, I'll try more stuff today...

Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 11 May 2017, 18:08
by NathanOtano
héhé, always here :mrgreen:

Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 12 May 2017, 18:26
by schwarzgrau
hehe is héhé some french laughter?

Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 13 May 2017, 07:29
by NathanOtano
Exactly : )
Btw my idea was not working : (

Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All

Posted: 21 May 2017, 19:00
by juansolimar
this is perfect! thanks a lot! :D