Sort Layer Name

 From:  Michael Gibson
11490.2 In reply to 11490.1 
Hi MindSet,

re:
> Is there a way to Alphabetize layer names?

There's a script that will do that here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=3918.2


> Is there a way to set the current layer from within a selection set?

Try this one:

script: /* Set active style from selected object */ var objs = moi.geometryDatabase.getSelectedObjects(); if ( objs.length > 0 ) { moi.geometryDatabase.activeStyle = objs.item(0).styleIndex; }

- Michael