Show hidden items

Next
 From:  Metin Seven (SEVENSHEAVEN)
6901.1 
Hi guys,

I was wondering if there is a command for the useful option of using Ctrl + LMB on the Hide button to show all hidden objects and selecting the one(s) you want to unhide?

I'd like to assign it to a keyboard shortcut. Maybe it's accessible through a script?

Muchas gracias in advance,

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

Previous
Next
 From:  bemfarmer
6901.2 In reply to 6901.1 
.

EDITED: 8 Sep 2014 by BEMFARMER

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

Previous
Next
 From:  Michael Gibson
6901.3 In reply to 6901.1 
Hi Metin, try putting in this for the keyboard shortcut:

script: /* Show subset of hidden objects */ moi.geometryDatabase.showSubset();


- 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

Previous
Next
 From:  Metin Seven (SEVENSHEAVEN)
6901.4 In reply to 6901.3 
Ah, perfect, thanks once again for your sublime support, Michael.

———————

metinseven.com — 3D (print) modeling • animation • artwork • design • illustration • visualization

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

Previous
Next
 From:  shane (SHANE_W)
6901.5 
Hi Michael, on that same topic what would a script for simply unhiding all hidden objects look like?

Thanks,

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

Previous
Next
 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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  shane (SHANE_W)
6901.7 In reply to 6901.6 
>>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 ); }


Perfect! Sometimes I want to unhide everything without losing my selection and this will work perfectly.

It would be fantastic if we could have a thread or a spot on your webpage for all of these wonderful little snippets.

Thanks,

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

Previous
Next
 From:  Michael Gibson
6901.8 In reply to 6901.7 
Hi Shane,

> It would be fantastic if we could have a thread or a spot on your webpage
> for all of these wonderful little snippets.

Currently the area that's closest to that is Petr's page here:
http://kyticka.webzdarma.cz/3d/moi/

Many of the most useful and most frequently asked for ones are collected there currently.

At some point in the future I want to make a type of script library that you would be able to browse from within MoI, probably integrated with the shortcut key setup...

- 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

Previous
Next
 From:  shane (SHANE_W)
6901.9 In reply to 6901.8 
The script library would be awesome.

Thanks for all of your help, Michael.

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

Previous
 From:  Metin Seven (SEVENSHEAVEN)
6901.10 
An integrated script library with scripts that can be easily assigned to shortcuts would indeed be great!

———————

metinseven.com — 3D (print) modeling • animation • artwork • design • illustration • visualization

  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