V5 beta Jul-30-2024 available now

 From:  Michael Gibson
11493.38 In reply to 11493.37 
Hi Andreas,

re:
> I think it would be helpful to be able to sort the stiles alphabetically, in
> ascending or descending order.

You can do that currently using a script, see here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=3918.2

That's in increasing order, to do it in decreasing order use this one:

script: /* Sort styles alphabetically decreasing */ moi.geometryDatabase.styleEditorOpened(); var styles = moi.geometryDatabase.getObjectStyles(); var stylearray = new Array(); for ( var i = 0; i < styles.length; ++i ) { stylearray.push( styles.item(i) ); } function sortfunc(a,b) { return b.name.toLowerCase().localeCompare( a.name.toLowerCase() ); } stylearray.sort(sortfunc); for ( var i = 0; i < stylearray.length; ++i ) { var style = stylearray[i]; while ( style.index> i ) style.moveUp(); } moi.geometryDatabase.styleEditorClosed();

- Michael