Find out Layer(id)?
Posted: Mon Jul 21, 2008 4:19 pm
I have the name of a layer (child of a switch-layer) but how do I find out it's id?
I can get the layer-id for a selected layer easy enough but how do I get it for other layers?
Would the easiest thing be to get the number of layers in the switch, then move between them and see if the current layer's name matches the one I'm looking for and when it does get the id of that layer and finally select the original layer again?
Or is there any function to get the id of a named layer?
I can get the layer-id for a selected layer easy enough but how do I get it for other layers?
Would the easiest thing be to get the number of layers in the switch, then move between them and see if the current layer's name matches the one I'm looking for and when it does get the id of that layer and finally select the original layer again?
Or is there any function to get the id of a named layer?