toggle lighttable display - shortcut

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
Post Reply
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

toggle lighttable display - shortcut

Post by Peter Wassink »

(this is a reminder to an old request)
i wish to make a key to toggle the (global)ligttable on and of.
its currently missing in the list

the function is called:
Toggle Light table Display
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
NathanOtano
Posts: 1187
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: toggle lighttable display - shortcut

Post by NathanOtano »

Hey!

I made a little panel for you that toggles between two lightable states (joined at the bottom of this post). I think it can do what you need, with some extras.

The first time you click on it it stores you current lighttable settings and sets the global Lighttable opacity to 0.
Then each time you use the button, it stores the current state of the lighttable and loads the previous one.
So you can set one state with an opacity of 0 and another with the opacity you're habitually using. Or just use two different non-0 settings.

Please note that it stores every individual setting and not just the opacity, so you can also remember the color mode and image mode you're using + it toggles each individual lighttable frame display. (But it does'nt stores the opacity of each individual lightable image because it's not possible with george scripts... can be a feature request <3)

But if you need only a on/off opacity toggle you can use this simple script :

Code: Select all

tv_lighttablemode
parse result a a a a a a a currentdensity a

IF CMP (currentdensity, "0") == 0
	tv_writeuserstring "lighttabletoggle" "storestate" currentdensity
	tv_lighttablemode density 0
ELSE
	tv_readuserstring "lighttabletoggle" "storestate"
	tv_lighttablemode density result
END
It stores a new value each time you have a lighttable opacity that is not 0 and then the opacity is set to 0. If your opacity is 0 when you launch the script, it goes back to the last stored value.

I agree that a simple global lightable keystroke toggle will be usefull. And i would like to be able to do it with george too (we can toggle every frame, why not the "0" frame?)
Attachments
LT_2_states_Toggle_Panel.tvpx
(89.5 KiB) Downloaded 1037 times
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
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: toggle lighttable display - shortcut

Post by Peter Wassink »

Thank you Nathan for your trouble, much appreciated!
it does sound a bit complicated but i'll give it a try.

TVPaint-team, now don't you think your off the hook for the on/off switch request o.k.! :wink:
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
Elodie
Posts: 13913
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: toggle lighttable display - shortcut

Post by Elodie »

I'm deeply shocked : you are right, there is not such a shortcut ! :shock:
(Indeed I'm shocked because you are right, I'm shocked because such a basic feature should be there for a while !)

> to do list !
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: toggle lighttable display - shortcut

Post by Peter Wassink »

Elodie wrote:I'm deeply shocked : you are right, there is not such a shortcut ! :shock:
(Indeed I'm shocked because you are right, I'm shocked because such a basic feature should be there for a while !)

> to do list !
just bumping this because i need it so often.
(your shocked reaction made me smile again Elodie .. :wink: )
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
NathanOtano
Posts: 1187
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: toggle lighttable display - shortcut

Post by NathanOtano »

I'd add :
I agree that a simple global lightable keystroke toggle will be usefull. And i would like to be able to do it with george too (we can toggle every frame, why not the "0" frame?)
And, peter, maybe try this script :
Attachments
Toggle Global LT.tvpx
(5 KiB) Downloaded 1022 times
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.
Svengali
Posts: 1552
Joined: 28 Dec 2006, 10:08

Re: toggle lighttable display - shortcut

Post by Svengali »

Here's another button I use a lot which toggles the LightTable for the current layer.
Attachments
LT_Toggle.tvpx
(80.5 KiB) Downloaded 973 times
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
Post Reply