tv_layercolor select color_index
tv_layercolor unselect color_index
-mads
[DONE] George : Select layers with color index
[DONE] George : Select layers with color index
Last edited by Mads Juul on 14 Nov 2014, 08:16, edited 1 time in total.
Re: Select layers with color index with George
tv_layergetcolor LayerID
tv_layersetcolor LayerID ColorIdx
tv_layersetcolor LayerID ColorIdx
Hervé ADAM, TVPaint Team
Re: Select layers with color index with George
Is there a George command for Key: Layer: Select Current Layer ?
-Mads
-Mads
Re: Select layers with color index with George
Nomadsjuul wrote:Is there a George command for Key: Layer: Select Current Layer ?
-Mads
Hervé ADAM, TVPaint Team
Re: Select layers with color index with George
??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 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
here is all options in the cmd:
Here is the script to select all layers with the same colors
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
Code: Select all
tv_layercolor get 0
color_idx = result
tv_layercolor select color_idx
Hervé ADAM, TVPaint Team
Re: Select layers with color index with George
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
:_)mads
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
Re: Select layers with color index with George
thanks Mads !
the preliminar "deselect all" part was missing me too.
the preliminar "deselect all" part was missing me too.