Hi Alex, the example STEP file does not seem to have any layers set up in it. Those would be some PRESENTATION_LAYER_ASSIGNMENT entries in the file.
So the material names "Color #bdefefff", "Color #c76363ff" and "Color #cdcdeaff" in Pixyz and InstaLOD do not seem to be coming from preserving material names, they are just cooking up that name from the color value.
It is possible to set up a script in MoI to do the same thing. To do that inside MoI go to Options > "Shortcut keys" and add in a new shortcut key and for the command part of the shortcut key put in this:
script: var styles = moi.geometryDatabase.getObjectStyles(); for ( var i = 0; i < styles.length; ++i ) { var style = styles.item(i); style.name = 'Color ' + style.hexcolor.toLowerCase() + 'ff'; }
If you then trigger that shortcut key after loading the step file, the style names in MoI should change from "Level 1", "Level 2", etc... to instead be "Color #cdcdebff", etc... The script just renames all styles to have a name derived from the style's color value.
- Michael
|