Page 1 of 1

how to customize the color of the "all black" ink pot?

Posted: 09 Sep 2008, 10:41
by toonsisters
dear community,

as the topic sais I would like to change the color of the "all black" ink pot button.
The script is:

tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0

the color is:
R 066 G 055 B 042

how can I add the color information into the script?

thank you
vera

Re: how to customize the color of the "all black" ink pot?

Posted: 09 Sep 2008, 17:28
by ZigOtto
hi TS,
do you need to modify only the "Ink All in Black" into a custom "Ink All in Brown" tool ?
or will you need all the "Black" relative tools to be modified as well,
(Erase Black Pixels, Tint in Black, Magic Black Eraser) ?

anyway, you can start to try this : duplicate the "All in Black" Button,
then edit it and replace the command line by the one as on this attached pict. :
LMB click "Type Script's Command..."

ps : An other way consists to "buttonize" an FXstack,
I haven't tried this, but I think it should be possible after some FXs tweaking.

Re: how to customize the color of the "all black" ink pot?

Posted: 25 Sep 2008, 08:57
by toonsisters
Hi Zigotto,

sorry for my late reply. I just realized that I haven't gave you feedback yet.
Yes, your recommended script does exactly what I need.

Thank you very much again,
vera

Re: how to customize the color of the "all black" ink pot?

Posted: 16 Jun 2018, 19:58
by danpanaitescu
It worked in TVP 10, I've tried the same script in TVP 11 and it didn't seem to work. Any idea?
Thank you

Re: how to customize the color of the "all black" ink pot?

Posted: 18 Aug 2023, 08:47
by Sewie
Hi, I have the same question.

I want to create a button that turns all my black lines into a dark grey color. (So that I can then manipulate the lightness/darkness with Otano's amazing Storyboard Tools panel.)
Any idea how I can find out what the code would be for the greys?

For example this one:
HSL: 0,0,30

Re: how to customize the color of the "all black" ink pot?

Posted: 18 Aug 2023, 11:12
by Peter Wassink
you can tweek the pixelmatrix value

i did it for you:
the numbers next to the buttons stand for
Luminance value (pixelmatrix value)

(for Luminance 30 you need to put in 0.12)
turn to grey.png
turn to grey.png (7.22 KiB) Viewed 3632 times

Re: how to customize the color of the "all black" ink pot?

Posted: 19 Aug 2023, 09:30
by Peter Wassink
To circle back to the original thread question of "how to customize the color....":

You can make an action to turn all editable pixels on the layer into ANY RGB color using this formula:
By using this formula on the pixelmatrix command


x *100 / 255
where x = the desired R G or B value

Example:
Hisko brown, RGB = 95,73,58

R : 9500/255 = 0.373
G: 7300/255 = 0.286
B: 5800/255 = 0.227

place these values in the spot of the 4th zero in each of the three 5 zero arrays like so (disregard the underscores):
tv_cmd Heads tv_pixelmatrix 0 0 0 0 0_ 0 0 0 0 0_0 0 0 0 0_ 0 0 0 1 0

tv_cmd Heads tv_pixelmatrix 0 0 0 0.373 0 _ 0 0 0 0.286 0 _ 0 0 0 0.227 0 _ 0 0 0 1 0


#recolor pixels
#recoloring
#recolor lines

Re: how to customize the color of the "all black" ink pot?

Posted: 22 Aug 2023, 08:40
by Sewie
Great!
Thanks, Peter. :)