Notifications
Clear all
[Closed] set current layer by name
a quick search through the mxs help yielded this:
myLayer = layermanager.getlayerfromname <string>
myLayer.current = true
Dec 21, 2007 12:55 pm
You have to first get the Layer by Name and then set it to current by its Layer Properties.
layer = LayerManager.getLayerFromName "0" -- get the 0(default) layer by name
layer.current = true -- set it as current
-Eric