shortcut: select everything with the same name.
All  1-4  5

Previous
 From:  Michael Gibson
4780.5 In reply to 4780.4 
Hi nos,

> I noticed if the script only selects object which are visible. Could
> this be changed so that it would select all object and make the
> hidden objects visible?

Yup, this is possible by making a small change to the script, here is a version that should behave like you're asking about:

script: /* Extend selection to same names */ var names = new Array(); var objs = moi.geometryDatabase.getSelectedObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.name != '' ) names[obj.name] = true; } objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.name != '' && names[obj.name] ) { obj.hidden = false; obj.selected = true; } }

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-4  5