Changing the Tint Color

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
Broughtvulture
Posts: 31
Joined: 09 Jul 2015, 00:58

Changing the Tint Color

Post by Broughtvulture »

As you know the sketch panels are very convenient when it comes to changing the color of your lines, without having to mess with the FX Panel. I was wondering how to change the color of the tint from black to another color like brown( R: 104 G: 066 B: 034 )? I was searching around and came by the George Script Documentation on http://wiki.tvpaint.com/index.php?title ... ecialBrush, but I still don't know how to use it. Someone please help me decipher this: http://wiki.tvpaint.com/index.php?title=Tv_CustomMode I looked at the values on the Red, Blue, Orange, and Green, but haven't been able to make much sense of it. I know that r(red), g(green), b(blue),and a(alpha). What is k and why are there 1, 2, 3, and 4 beside each value? Please help
Windows 7 64-bit
FX 8350 8 Core - 16 GB RAM
TVPaint Professional 11.0.8 64-bit

BNV
User avatar
Animark
Posts: 505
Joined: 16 Oct 2008, 15:26
Location: Berlin

Re: Changing the Tint Color

Post by Animark »

I don't know a lot about the George Script commands, but when I want to have another line color, I just use the "Preserve Transparency" function of a layer, one of the drawing tools and every color I like to have.
TVPaint 10.5.7 - Win10/64
TVPaint 11.0.8 - Win10/64
TVPaint 11.0.8 - Win10/64 (Wacom Companion 2)
Elodie
Posts: 13912
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: Changing the Tint Color

Post by Elodie »

Colors from sketch panels are chosen very specifically. For example, in RGB sketch panel, red is pure (without nuance of blue or green), green is pure (without nuance of red or blue) and blue is pure (without nuance of red or green). When you hit "delete green", you will never affect red or blue.

If you use brown, it will be a mix of red and green. So, if you draw with brown and green lines, when you will hit your "delete green" button, it will also affect brown lines, that will turn into light red.

Plus, you will spend a longer time to change values in sketch panel rather than preserve alpha transparency and use any filled shape, as Animark suggested.
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Changing the Tint Color

Post by NathanOtano »

But if you don't need to delete only specific colors, you can use the color you want + pure black lines and erase only colored strokes.

Code: Select all

tv_cmd heads tv_pixelmatrix  1 0 0 0 0    0 1 0 0 0   0 0 1 0 0    -3 -3 -3 1 0 
With this command I think you will be able easily erase any colored pixel, even if it's not pure color. If your color is too dark and leaves grey, you can replace the "-3" by lower numbers.

Each section represents R, G, B and alpha and in it you can modify it with R, G, B, alpha and k (a simple added number that can be positive or negative). So you can put blue in red, red in blue, blue in alpha, add 50 to your blue channel, remove 50 opacity on all your channels... etc.

It's explained here :
http://wiki.tvpaint.com/index.php?title=Tv_PixelMatrix" onclick="window.open(this.href);return false;

I'm still searching a way to easily erase uncolored pixels but havn't found it.
Last edited by NathanOtano on 22 Dec 2015, 15:35, edited 5 times in total.
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
schwarzgrau
Posts: 1238
Joined: 23 Jan 2012, 22:08
Location: Offenbach / Germany
Contact:

Re: Changing the Tint Color

Post by schwarzgrau »

If you wan't to create own colors in your sketch-panel you're on the right track I guess, but if you just want to be able to "recolorize" your lines you can use this script by Svengali
Windows 11 22H2 / TVP 11.7.0 PRO WIBU / Cintiq 22HD
Windows 11 22H2 / TVP 11.7.0 PRO WIBU / Mobile Studio Pro 16" (2019)
Android 13 / TVP 11.7.0 / Galaxy Tab 7 FE
INSTAGRAM
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Changing the Tint Color

Post by NathanOtano »

Oh I remember this script, thanks.
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