PDA

View Full Version : simple layer list problem


dussla
07-20-2010, 06:39 AM
(

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

SoLiTuDe
07-21-2010, 01:52 AM
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 "

CGTalk Moderation
07-21-2010, 01:52 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.