keyboard shortcut next group (colour)

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
Joost
Posts: 439
Joined: 24 Nov 2011, 13:16

keyboard shortcut next group (colour)

Post by Joost »

Hi!

Is there a way to make a keyboard shortcut for creating "next a colour label" (of "group" as they are called officially).

What I mean:
I create a layer with the "default" group color, then I want to hit this keyboard shortcut to make the layer the "group A" color, and hit it again to make it "group B", and so on.


Any suggestion?


Thanks!
Mac OS 13.4.1 , Mac Studio 2023, 32GB RAM, Wacom Cintiq 27 QHD (no touch), Wacom Driver 6.4.2-4.
TVP Pro 11.7.1
User avatar
Joost
Posts: 439
Joined: 24 Nov 2011, 13:16

Re: keyboard shortcut next group (colour)

Post by Joost »

Ooh and another keyboard shortcut I'm looking for:

Is there a way to create a keyboard shortcut for turning off the light table for EVERY layer (at the same time)?
(so the "sun" icon is turned off for all layers)

Thanks!
Mac OS 13.4.1 , Mac Studio 2023, 32GB RAM, Wacom Cintiq 27 QHD (no touch), Wacom Driver 6.4.2-4.
TVP Pro 11.7.1
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: keyboard shortcut next group (colour)

Post by Svengali »

George scripting...
KILL LIGHTTABLE IN ALL LAYERS:
Loops through all layers, lights out. cut this script and paste it in an embedded George Script button

Code: Select all

LayerID = 0	
Counter = 0	
While CMP(LayerID,"none") == 0	
	   tv_LayerGetID Counter	
   	LayerID = result
    	tv_LayerDisplay LayerID LIGHTTABLE OFF
	    	Counter = Counter + 1
END
COLORGROUPS:
13 colorindex numbers, so you need to step through the colorgroups for the current layer.
cut this script and paste it in an embedded George Script button. Each tap goes to next higher index, then loops back to zero index.

Code: Select all

tv_GetCurrentID
LayerID = result
tv_LayerColor GET  LayerID 0
ColorIndex = result
NewColorIndex = ColorIndex + 1
IF NewColorIndex > 12
  NewColorIndex = 0
END
tv_LayerColor SET LayerId NewColorIndex
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
User avatar
Joost
Posts: 439
Joined: 24 Nov 2011, 13:16

Re: keyboard shortcut next group (colour)

Post by Joost »

You are a genius! :D
I will check it out tomorrow!
Mac OS 13.4.1 , Mac Studio 2023, 32GB RAM, Wacom Cintiq 27 QHD (no touch), Wacom Driver 6.4.2-4.
TVP Pro 11.7.1
User avatar
Joost
Posts: 439
Joined: 24 Nov 2011, 13:16

Re: keyboard shortcut next group (colour)

Post by Joost »

They work really well.
Thanks a lot!
Mac OS 13.4.1 , Mac Studio 2023, 32GB RAM, Wacom Cintiq 27 QHD (no touch), Wacom Driver 6.4.2-4.
TVP Pro 11.7.1
Post Reply