Hide + show

Next
 From:  TOM (SIRTOM)
9543.1 
Hi,

I am looking for the right command for the following :

Shortcut > hide selected object(s)
Same Shortcut > show previously hidden object(s)

It seems that the default command acts differently when
toggle the shortcut again,

Thanks TOM
  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
9543.2 In reply to 9543.1 
Hi Tom, there is not a command that does that exactly but there is a similar one called Isolate. Isolate will hide everything that is not currently selected, so just the selected objects will remain visible. When you trigger it a second time it will restore everything to its pre-isolate state.

Isolate is available in the UI by right-clicking on the Edit > Hide button, or if you want to make a shortcut key for it put in:
script: moi.geometryDatabase.isolate();

> It seems that the default command acts differently when
> toggle the shortcut again,

The regular one (triggered by left-click on Edit > Hide) does not retain any memory of previous states, it just does: If anything selected, hide those. If nothing selected show all hidden objects.

Isolate is the one that retains a memory of previous states and restores them.

- 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:  TOM (SIRTOM)
9543.3 In reply to 9543.2 
Hi Michael , I use isolate all the time, very helpful command.
So what I am looking for could be described as a negative isolate fuctionality.

If I hide one object with the default "hide" and try to mae it visible again, it
diplays ALL hidden objects which is not helpful when I want to keep my
scene as before just adding teh previously hidden object. It get specially
confusing when there is a huge number of hidden objects which suddenly
get displayed at once.
  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
9543.4 In reply to 9543.3 
Hi Tom, sorry no there isn't anything set up for that. But if you want the same as "negative isolate", I'd think you could get that by inverting the selection and then using regular isolate... ?

It is also possible to show only some of the hidden objects and not all of them by using the "Show subset" function which you can access by a Ctrl+click on the Edit > Hide button.

"Show subset" will temporarily show all hidden objects but then will pause and let you select the ones of interest. When you're done selecting the ones that you did not select will go back to being hidden.

If you need more fine tuned control over hide/show instead of everything the other main way to accomplish that is to assign a name to your object so you can use the scene browser to hide and show it rather than the Edit > Hide button only.

- 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
 From:  TOM (SIRTOM)
9543.5 In reply to 9543.4 
Hi Michael, thats what I thought, just invert the selection and then isolate.
I willgo through the other hide-scripts to see how they work.
Thanks for helping ! TOM
  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