magic ereaser blue 50% Topic is solved

A forum dedicated to George scripting questions
Post Reply
juansolimar
Posts: 32
Joined: 10 Dec 2013, 02:42

magic ereaser blue 50%

Post by juansolimar »

Hi, i dont know much about script. i can create some toolbars and action, but nothing to fancy.
i want to create a button that erase only the blue in 50% in the entire image (because the blue by default its too hard).
anyone can give me some help?

thanks!
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18
Location: Viborg,Denmark
Contact:

Re: magic ereaser blue 50%

Post by Mads Juul »

This code turns down the aalpha channel in the blue channel of the current image with 50%

Code: Select all

tv_pixelmatrix 1 0 0 0 0   0 1 0 0 0   0 0 1 0 0   0 0 -0.5 1 0
is this what you was looking for?

You can read about the command here
http://wiki.tvpaint.fr/index.php?title=Tv_PixelMatrix

I have also put it in a custom panel.
Hope it helps.
-Mads
Attachments
MEB50.tvpx
(4.5 KiB) Downloaded 143 times
Mads Juul
Storyboard Artist
blog: http://mjstoryboard.blogspot.dk/
Mail: mjstoryboard@gmail .com

Windows 10, 64 bit i7-4790 CPU 4.00 Hz,32 GB RAM, With TVP Animation 11 Pro (11.0.2-64bits)
2 Monitors 1920X1080 pixels + 1 Wacom Cintiq 21UX 2
juansolimar
Posts: 32
Joined: 10 Dec 2013, 02:42

Re: magic ereaser blue 50%

Post by juansolimar »

JUST PERFECT! THANKS MADS!!!!
(y suppose that if i change the "0 0 -1.5 1 0" for "0 -1.5 0 1 0" work with the red or green, right?)
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18
Location: Viborg,Denmark
Contact:

Re: magic ereaser blue 50%

Post by Mads Juul »

juansolimar wrote:JUST PERFECT! THANKS MADS!!!!
(y suppose that if i change the "0 0 -1.5 1 0" for "0 -1.5 0 1 0" work with the red or green, right?)
Glad I can help.

Yes this should turn down the red channel

Code: Select all

tv_pixelmatrix 1 0 0 0 0   0 1 0 0 0   0 0 1 0 0   -0.5 0 0 1 0
And this the Green channel

Code: Select all

tv_pixelmatrix 1 0 0 0 0   0 1 0 0 0   0 0 1 0 0   0 -0.5 0 1 0
Mads Juul
Storyboard Artist
blog: http://mjstoryboard.blogspot.dk/
Mail: mjstoryboard@gmail .com

Windows 10, 64 bit i7-4790 CPU 4.00 Hz,32 GB RAM, With TVP Animation 11 Pro (11.0.2-64bits)
2 Monitors 1920X1080 pixels + 1 Wacom Cintiq 21UX 2
Zetariver
Posts: 77
Joined: 23 Dec 2013, 07:58

Re: magic ereaser blue 50%

Post by Zetariver »

I didn't know geroge can control alpha value of Blue channel.
By the way, is it possible to fill only transparent areas(alpha value 0) with specific colors?
juansolimar
Posts: 32
Joined: 10 Dec 2013, 02:42

Re: magic ereaser blue 50%

Post by juansolimar »

HI! i was wondering. what if i want to erease by 50% only the black lines?

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

Re: magic ereaser blue 50%

Post by meslin »

Check out the half-erase panel I just posted in the Contents Sharing section:
http://forum.tvpaint.com/viewtopic.php?f=11&t=10684

Thanks!
David
Post Reply