Page 1 of 1

[DONE] George : Select layers with color index

Posted: 21 Oct 2010, 04:47
by Mads Juul
tv_layercolor select color_index
tv_layercolor unselect color_index

-mads

Re: Select layers with color index with George

Posted: 21 Oct 2010, 08:16
by Hervé
tv_layergetcolor LayerID
tv_layersetcolor LayerID ColorIdx

Re: Select layers with color index with George

Posted: 21 Oct 2010, 10:46
by Mads Juul
Is there a George command for Key: Layer: Select Current Layer ?
-Mads

Re: Select layers with color index with George

Posted: 21 Oct 2010, 13:07
by Hervé
madsjuul wrote:Is there a George command for Key: Layer: Select Current Layer ?
-Mads
No

Re: Select layers with color index with George

Posted: 21 Oct 2010, 13:28
by Mads Juul
Hervé wrote: tv_layergetcolor LayerID
tv_layersetcolor LayerID ColorIdx
??
isn't it

Code: Select all

tv_layercolor get layer_id (return color index of the layer id)
tv_layercolor set layer_id color_index
I think I haven't explained the Feature request properly.

I would like to make a layer Selection containing all the layers with the same Color Index.
It's possible in the popup menu when you right click the 13 colors in the buttom of the Layer panel
it says
- 'Select the layers of this color'
and
- 'unselect the layers of this color'

I would like to make a script so I with one shortcut can make a layer selection containg the layers with the color of the current layer. so I can make An instance handle drag on these layers.
-Mads

Re: Select layers with color index with George

Posted: 21 Oct 2010, 13:39
by Hervé
here is all options in the cmd:

Code: Select all

	* tv_layercolor get layer_id (return color index of the layer id)
	* tv_layercolor set layer_id color_index
	* tv_layercolor lock color_index
	* tv_layercolor unlock color_index
	* tv_layercolor show display color_index
	* tv_layercolor show timeline color_index
	* tv_layercolor hide display color_index
	* tv_layercolor hide timeline color_index
	* tv_layercolor [de]select color_index
Here is the script to select all layers with the same colors

Code: Select all

tv_layercolor get 0
color_idx = result
tv_layercolor select color_idx

Re: Select layers with color index with George

Posted: 21 Oct 2010, 14:02
by Mads Juul
Hervé

Thank You Hervé
I missed the slect cmd.

To make the script work as I would like I hav to make a deselect firs

Code: Select all

PARAM None
i=0
WHILE i < 13
	tv_layercolor deselect i
	i=i+1
END
tv_layercolor get 0
color_idx = result
tv_layercolor select color_idx
:_)mads

Re: Select layers with color index with George

Posted: 21 Oct 2010, 21:13
by ZigOtto
thanks Mads !
the preliminar "deselect all" part was missing me too.
8)