Delete only UNcolored pixels

A forum dedicated to George scripting questions
Post Reply
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Delete only UNcolored pixels

Post by NathanOtano »

Hey!

I'm searching a way to delete only uncolored pixels. Is it possible with tv_pixelmatric? Or do i have to use a layer where my colored pixels are gone as a mask to delete it (and because of the stencil behaviour (that i really hope will be corrected one day) it will leave a trace. So i have to add a border with a FX, so i have to do all of this manually).

Nathan
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Delete only UNcolored pixels

Post by NathanOtano »

I found that using the magic wand in "color only" fill mode and picking an uncolored pixel can do the job. After deleting pixels in the area, it leaves some black where it was mixed with some color strokes but because we often color them again it's OK (but not clean).

We can also transform tranparent areas by adding black in them, then delete colored pixels and use the remainings as a mask to delete uncolored pixels. Same result as above.

But with those two methods i can avoid the problems of the stencil that leaves borders around erased lines.

EDIT : I found this one the sketch rgb panel that erases only black pixels, but work only with pure R/V/B colors. And there is the one for orange and blue. But does'nt work for every color, you get a black outline from it.

Code: Select all

tv_cmd Heads tv_pixelmatrix 0 0 0 0 0   0 0 0 0 0   0 0 0 0 0   1 1 1 0 0
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Elodie
Posts: 13912
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: Delete only UNcolored pixels

Post by Elodie »

What do you mean by "uncoloured pixels" ?
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Delete only UNcolored pixels

Post by NathanOtano »

I mean i want to remove every pixel that is pure black or grey or white and keep every pixel with a bit of colour.
Basically, like in japanese animation, i use specific colours for specific lines and i want to isolate them sometimes.
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Elodie
Posts: 13912
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: Delete only UNcolored pixels

Post by Elodie »

Why don't you try with Colour Keyer ? It's not perfect (especially if you work with anti aliasing or gradients) but it's interesting :
EraseWhiteGreyBlack.tvpp
(230.99 KiB) Downloaded 162 times
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Delete only UNcolored pixels

Post by NathanOtano »

Interesting. I'll try to fine tune this with my colors.
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Post Reply