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
|