MoI discussion forum
MoI discussion forum

Full Version: Invert and hide in one script?

From: Matadem
20 May   [#1]
Good day.
Is there s script when you high light an item that I can invert and hide in one shortcut?
I use this very often so a single button would speed up things.

Thank you!
From: stefano (LIGHTWAVE)
20 May   [#2] In reply to [#1]
Hi Matedem,

Does this do what you want?

code:
script:moi.geometryDatabase.invertSelection(); moi.geometryDatabase.hide();


1. Select Object(s) to Invert



2. and then Hide



This inverts the current selection first, then hides the newly selected objects — effectively leaving the original selection visible,

Image Attachments:
Invert the selected and hide 2.jpg  Invert the selected and hide.jpg 


From: Matadem
20 May   [#3]
works perfect. tnx!
From: Booleano
27 May   [#4] In reply to [#2]
Hi

And return it to how it was?
From: Michael Gibson
27 May   [#5] In reply to [#4]
Hi Booleano,

re:
> And return it to how it was?

There is an Isolate function which will hide everything that is not selected, and also retain a memory of what was hidden and visible before.

When you trigger it a second time it will restore everything to its pre-isolate state.

That is available by right-clicking on the Edit > Hide button, or if you want to put it on a shortcut key use this:

script: moi.geometryDatabase.isolate();

- Michael
From: Booleano
29 May   [#6] In reply to [#5]
Hi Michael

Thank you