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

Share your custom panels, brushes, papers... (you need to be registered to read posts in this section)
Post Reply
User avatar
meslin
Posts: 124
Joined: 26 Oct 2008, 03:07
Location: Connecticut / New York

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

Post by meslin » 10 May 2017, 17:22

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
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
You do not have the required permissions to view the files attached to this post.

User avatar
meslin
Posts: 124
Joined: 26 Oct 2008, 03:07
Location: Connecticut / New York

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

Post by meslin » 10 May 2017, 17:36

Oh - I couldn't figure out how to remove 50% of the white without altering the color...maybe someone can help with that...

User avatar
NathanOtano
Posts: 852
Joined: 01 Apr 2014, 07:07
Location: Paris, France
Contact:

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

Post by NathanOtano » 11 May 2017, 15:41

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
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!

User avatar
meslin
Posts: 124
Joined: 26 Oct 2008, 03:07
Location: Connecticut / New York

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

Post by meslin » 11 May 2017, 16:39

Knew you'd come through Nathan! :mrgreen: Thanks for suggestions, I'll try more stuff today...

User avatar
NathanOtano
Posts: 852
Joined: 01 Apr 2014, 07:07
Location: Paris, France
Contact:

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

Post by NathanOtano » 11 May 2017, 18:08

héhé, always here :mrgreen:
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!

User avatar
schwarzgrau
Posts: 995
Joined: 23 Jan 2012, 22:08
Location: Offenbach / Germany
Contact:

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

Post by schwarzgrau » 12 May 2017, 18:26

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

User avatar
NathanOtano
Posts: 852
Joined: 01 Apr 2014, 07:07
Location: Paris, France
Contact:

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

Post by NathanOtano » 13 May 2017, 07:29

Exactly : )
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!

juansolimar
Posts: 31
Joined: 10 Dec 2013, 02:42

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

Post by juansolimar » 21 May 2017, 19:00

this is perfect! thanks a lot! :D

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests