Page 1 of 1

Background > None, Colour and Check

Posted: 16 Jan 2018, 11:14
by daninski
Hi,

Is there anyway to have the background colour separate from the colours involved in the check? I'd like a white background layer, but for Check background I'd like a light grey and a mid grey. Which is currently not possible. IF I could change the colour of None to white, from black, that would solve my issue but I can't find that as an option.

Is it possible?

If not... FEATURE REQUEEEEEEST!!!! ;)

Thanks.

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 11:44
by NathanOtano
Can't you just switch your background colors (bottom left of layer panel) between flat color and 2 colors and with the color you'd like to see? I'm not sure if I understood your request correctly

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 12:25
by daninski
The Colour background is linked to the one colour of the checked. So if flat colour is A, then check is A and B. I'd like flat colour to be A, and checked colour to be B and C...

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 12:46
by Animationriver
:D


Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 13:46
by daninski
Nope, It's still black when I check Background to •none. I'm talking about the background toggle at the bottle left of the clip timeline.

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 13:51
by Elodie
none = black.
background.mov
(1.6 MiB) Downloaded 1498 times

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 14:49
by daninski
So you can see my problem in your video Elodie. I don't want my Check colours linked to the Colour one. Do you understand what I mean?

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 15:07
by slowtiger
I understand and like to have the same options:

Black
White
Transparent/Checkers (made from 2 colours which are NOT linked to white)

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 15:33
by Svengali

Code: Select all

tv_BackGround
parse result Bkgnd
IF CMP(Bkgnd,"check 128 128 128 200 200 200") = = 1
tv_BackGround "color" 200 200 200
ELSE
tv_BackGround "check" 128 128 128 200 200 200
END
Here's a quick solution I use all the time: ToggleBackgroundButtons.tvpx. The first button has a GEORGE script that toggles between White, 3 shades of Gray and Black background, plus a light Gray checked background. The second button has an embedded script (as listed above) in which you can change the individual RGB settings yourself.

Sven

[edited Jan 17 2018]
And here is the other, longer script which can also be edited (just remember to follow the logic on RGB values that are changed and make sure they are the same in the IF test that follows). Click Select All and EMBED in place of the above script and you'll have White, three shades of gray and black plus the check background.

Code: Select all

Param none
ScriptName = "ToggleBackgrounds"

tv_BackGround
parse result Bkgnd

IF CMP(Bkgnd,"check 128 128 128 200 200 200")
	tv_BackGround "color" 255 255 255				// white background
	EXIT
END

IF CMP(Bkgnd,"color 255 255 255")
	tv_BackGround "color" 200 200 200				// light gray background
	EXIT
END

IF CMP(Bkgnd,"color 200 200 200")
	tv_BackGround "color" 120 120 120				// medium gray background
	EXIT
END

IF CMP(Bkgnd,"color 120 120 120")
	tv_BackGround "color" 60 60 60					// dark gray background
	EXIT
END

IF CMP(Bkgnd,"color 60 60 60")
	tv_BackGround "color" 1 1 1						// black background
	EXIT
END


IF CMP(Bkgnd,"color 1 1 1")
	tv_BackGround "check" 128 128 128 200 200 200	// checkered medium gray and light gray
	EXIT
END

tv_BackGround "color" 255 255 255					// if any other background, then display white

Re: Background > None, Colour and Check

Posted: 16 Jan 2018, 15:39
by NathanOtano
Scripts are always a solution hehe <3 love tvpaint

Re: Background > None, Colour and Check

Posted: 17 Jan 2018, 06:54
by daninski
Svengali wrote: 16 Jan 2018, 15:33

Code: Select all

tv_BackGround
parse result Bkgnd
IF CMP(Bkgnd,"check 128 128 128 200 200 200") = = 1
tv_BackGround "color" 200 200 200
ELSE
tv_BackGround "check" 128 128 128 200 200 200
END
Here's a quick solution I use all the time: ToggleBackgroundButtons.tvpx. The first button has a GEORGE script that toggles between White, 3 shades of Gray and Black background, plus a light Gray checked background. The second button has an embedded script (as listed above) in which you can change the individual RGB settings yourself.

Sven
Thanks Sven! I changed colour to 255,255,255 and I'm running :) I'll keyboard shortcut to it asap! :)