Show hidden items

 From:  Michael Gibson
6901.6 In reply to 6901.5 
Hi Shane,

> Hi Michael, on that same topic what would a script for simply unhiding all
> hidden objects look like?

Well, the regular Edit > Hide button will do different things depending on whether there is a selection or not - if there is a selection it hides it. If there isn't any selection it unhides everything.

If you want a shortcut key script that behaves the same as that, put in this script:

script: /* Trigger Edit > Hide */ moi.geometryDatabase.hide();


If you want something that does not do different things depending on the selection and just only strictly unhides things, put in this instead:

script: /* Unhide all */ var objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); obj.hidden = false; obj.getSubObjects().setProperty( 'hidden', false ); }

- Michael