How to select an object with object-name using script?

 From:  Michael Gibson
9848.5 In reply to 9848.4 
Hi Cemortan_Tudor,

re:
> & how should i select all unnamed (ex: hide/show unnamed)

Type Tab to put focus in the XYZ control, type * and push Enter to select all named objects, then use Select > Invert.

You could also set up a keyboard shortcut with this script to do it:

script: var objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if (obj.name == '' ) obj.selected = true; }

- Michael