script for naming per Style

 From:  Michael Gibson
3565.2 In reply to 3565.1 
Hi okapi,

> would it be possible to have a script to name all objects
> according to their Style name (as a 'one click' solution).

Set up the following script on a keyboard shortcut for that:

script: /* Set object name as style name */ var objs = moi.geometryDatabase.getObjects(); var styles = moi.geometryDatabase.getObjectStyles(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); obj.name = styles.item(obj.styleIndex).name; }> This would really speed up the export process.

I'm curious why you want to do this for your exports?

Object names and style/material names are kind of separate things normally.

- Michael