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
|