Notifications
Clear all
[Closed] Current Layer
Jan 07, 2008 4:38 am
Hi,
i am new to Max-Scripting i wrote this, whts wrong here.i want to select first layer after that second and so on… it showing error.
totalLayers = LayerManager.count – 1
for i = 0 to totalLayers do
(
layerNames = format “%
” (LayerManager.getLayer i).name
for each in layerNames do
(
layer = LayerManager.getLayerFromName each
layer.current = true
)
)
Thanks.
2 Replies
Jan 07, 2008 4:38 am
Hi, need to build the layernames array, then access it.
totalLayers = LayerManager.count - 1
layernames = (for i = 0 to totalLayers collect (LayerManager.getLayer i).name)
for each in layerNames do
(
layer = LayerManager.getLayerFromName each
layer.current = true
)