George button to make any pure rgb color to black ?

A forum dedicated to George scripting questions
Post Reply
User avatar
Nhils
Posts: 15
Joined: 07 Jun 2015, 09:24

George button to make any pure rgb color to black ?

Post by Nhils »

Hi !

I love to animate with as few layers as possible, for my sanity, and I tend to work with pure RGB colors : I start roughing in green, tie down in blue, clean in black, and so on.
crude_example.jpg
crude_example.jpg (13.96 KiB) Viewed 1792 times
I love the buttons that let me repaint a part of my drawing in another color etc, but sometimes I wish I had a button that would turn all my pixels with pure green color into pure black, without messing with the blue ones ? Like if I have several colors on my instance, like part rough in green some areas tied down in blue, I with I could turn the blue ones into black with the greens untouched.

I don't know how to go about doing such a thing ? I wouldn't know which command to use.
I couldn't find the doc for the tv_pixelmatrix command, and I'm not sure if that would be the one.

Maybe the image is more explicit about what I'm trying to do:
panel_demo.jpg
panel_demo.jpg (21.43 KiB) Viewed 1792 times
If anyone knows which george command would be useful, I can try to work from there :)

Thank you!
User avatar
Peter Wassink
Posts: 4436
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: George button to make any pure rgb color to black ?

Post by Peter Wassink »

you'd have to script something where it would:
first duplicate the layer
then on the top layer:
- kill al except blue,
- turn al remaining color (the blue) to black
then on bottom layer:
-kill blue
finally merge back the two layers into one.

but i can't help with scripting.


why not use the FXstack>replace color?
in this image you see in the splitscreen preview what it does to blue...
Clipboard_07-25-2024_02.jpg
Clipboard_07-25-2024_02.jpg (25.81 KiB) Viewed 1760 times
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Post Reply