Hi,
Im looking to create a button in a custom panel, that changes the color-code of the current layer to red, and then locks it.
I tried playing with tv_layercolor set and stuff, but it didn't work.
Is it possible?
Thanks.
change layer color code and lock it
Re: change layer color code and lock it
Paste this code into "Embedded George Script" in an action
It sets the color of the currrent layer to the color index "13" the last color of the layers
If you want another color change the colorindex(the number 13 in the first line of the code) to another number. Or edit the layer Colors by RMB the set layer color button on the layer. and press "Edit"
-Mads
It sets the color of the currrent layer to the color index "13" the last color of the layers
Code: Select all
tv_layercolor set 0 13
tv_layerlock 0 ON
-Mads
Re: change layer color code and lock it
OK, I'll do that. Thanks a lot.