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

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
toonsisters
Posts: 105
Joined: 11 Jan 2008, 13:38
Location: Germany

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

Post 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
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

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

Post 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.
Attachments
AllBrownButton.png
AllBrownButton.png (7.81 KiB) Viewed 14745 times
User avatar
toonsisters
Posts: 105
Joined: 11 Jan 2008, 13:38
Location: Germany

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

Post 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
danpanaitescu
Posts: 1
Joined: 13 Jun 2018, 09:28

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

Post 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
User avatar
Sewie
Posts: 1310
Joined: 18 Jun 2008, 11:57
Location: The Netherlands, Europe
Contact:

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

Post 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
Michael Sewnarain - Website
Windows 11/64b Pro - TVP11.7.0 & 11.7.1 - Pro/64b - Cintiq32 Pro - Intel i7-12700K - 64Gb RAM
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

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

Post 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 3714 times
Attachments
Turn to Grey.tvpx
(693 KiB) Downloaded 396 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
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

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

Post 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
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
User avatar
Sewie
Posts: 1310
Joined: 18 Jun 2008, 11:57
Location: The Netherlands, Europe
Contact:

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

Post by Sewie »

Great!
Thanks, Peter. :)
Michael Sewnarain - Website
Windows 11/64b Pro - TVP11.7.0 & 11.7.1 - Pro/64b - Cintiq32 Pro - Intel i7-12700K - 64Gb RAM
Post Reply