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.
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
Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
You do not have the required permissions to view the files attached to this post.
Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
Oh - I couldn't figure out how to remove 50% of the white without altering the color...maybe someone can help with that...
- NathanOtano
- Posts: 944
- Joined: 01 Apr 2014, 07:07
- Location: Paris, France
- Contact:
Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
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

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
Storyboard, animation and design work : http://nathanotano.tumblr.com/
As I'm highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios. Please don't hesitate to contact me!
As I'm highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios. Please don't hesitate to contact me!
Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
Knew you'd come through Nathan!
Thanks for suggestions, I'll try more stuff today...

- NathanOtano
- Posts: 944
- Joined: 01 Apr 2014, 07:07
- Location: Paris, France
- Contact:
Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
héhé, always here 

Storyboard, animation and design work : http://nathanotano.tumblr.com/
As I'm highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios. Please don't hesitate to contact me!
As I'm highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios. Please don't hesitate to contact me!
- schwarzgrau
- Posts: 1062
- Joined: 23 Jan 2012, 22:08
- Location: Offenbach / Germany
- Contact:
Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
hehe is héhé some french laughter?
Mac OS X 10.11.6 / TVP 11.0.8 PRO / Cintiq 22HD
Mac OS X 10.11.6 / TVP 11.0.8 PRO / Cintiq Companion 2
SCHWARZGRAU.COM
Mac OS X 10.11.6 / TVP 11.0.8 PRO / Cintiq Companion 2
SCHWARZGRAU.COM
- NathanOtano
- Posts: 944
- Joined: 01 Apr 2014, 07:07
- Location: Paris, France
- Contact:
Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
Exactly : )
Btw my idea was not working : (
Btw my idea was not working : (
Storyboard, animation and design work : http://nathanotano.tumblr.com/
As I'm highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios. Please don't hesitate to contact me!
As I'm highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios. Please don't hesitate to contact me!
-
- Posts: 32
- Joined: 10 Dec 2013, 02:42
Re: Half-Erase (50% Opacity) - Red/Green/Blue/Black/All
this is perfect! thanks a lot! 
