Invert and hide in one script?

Next
 From:  Matadem
12003.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!
  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:  stefano (LIGHTWAVE)
12003.2 In reply to 12003.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,

EDITED: 20 May by LIGHTWAVE


  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:  Matadem
12003.3 
works perfect. tnx!
  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:  Booleano
12003.4 In reply to 12003.2 
Hi

And return it to how it was?
  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:  Michael Gibson
12003.5 In reply to 12003.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
  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