Notifications
Clear all

[Closed] simple layer list problem

(

layerNames = for i = 0 to (layerManager.count-1) collect (LayerManager.getLayer i).name
sort layerNames
rollout theRollout “Select By layer”
(
listBox myDropDownList items:layerNames height:50 –show more than 1 material at a time!
on myDropDownList selected itm do
(

for obj in $* do

 ( obj.ishidden = false     )
 
  sel= for o in objects where  layerNames.name == myDropDownList.selected collect o

for i in sel do

  ( i.ishidden = true      )
select sel  

)
)

createDialog theRollout
)--end script 

hi good firends
i modify some forum code
for simple layer list select code.

but that is not work.

pls can you modify

1 Reply

pretty sure all you need to do is switch:
” for o in objects where layerNames.name == myDropDownList.selected collect o “
with
” for o in objects where o.layer.name == myDropDownList.selected collect o “