Shortcuts for new hide functions

Next
 From:  -ash-
3213.1 
Hi Michael,

I had a keyboard shortcut for the old hide command which is not working now.

What do I need to add to be able to do the same for the new hide commands? I have found the isolate script but I can't find one for hide that emulates the left click behavior (click to hide, click again to unhide)

Thanks very much.



PS: Happy New Year to you and your family, and everyone else here :)

Regards
Tony

(aka HamSoles)

  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
3213.2 In reply to 3213.1 
Hi Tony, actually the same old Hide script should still work...

To get the same result on a keyboard shortcut as the left click on the Hide button, use the following for the command part:

script:moi.geometryDatabase.hide();


If you want to have one that is the same as the right-click on the Hide button for the Isolate function, then use this:

script:moi.geometryDatabase.isolate();


And if you want one that is the same as Ctrl+click on the Hide button for the "show subset" function (where it lets you pick just some of the hidden objects to show rather than showing all), use this:

script: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:  -ash-
3213.3 In reply to 3213.2 
Hi Michael

Thanks for that.

However, now that I've used it a bit, I must say I really don't like the new behavior very much. I now have 2 commands where 1 used to do the trick.

Is there any way the old behavior can be emulated in a script, please?

I really liked the way I could click on something and move it into the hidden 'holding area'. Then, with the same shortcut choose which things to bring back.

Thanks.

Regards
Tony

(aka HamSoles)

  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
3213.4 In reply to 3213.3 
Hi Tony, yeah unfortunately the old behavior where the show function was always "show subset" was just too confusing to too many people. I got too many questions like "why did the objects reverse and then reverse back again?", etc...

So that's why they were broken into some separate functions.

It is possible to get the old behavior with a keyboard shortcut script though, for that use the following:

script: /* hide selected objects, or show subset if no selection */ var gd = moi.geometryDatabase; if ( gd.getSelectedObjects().length != 0 ) { gd.hide(); } else { gd.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
 From:  -ash-
3213.5 In reply to 3213.4 
Thanks very much Michael. That's just what I was after.

I also found the old hide confusing for a while - but like all your new ideas it became very useful once I got used to it :)

With the new behavior I don't like how it unhides everything, so then I have to go back and hide a bunch of objects again. If you have a lot of hidden objects this can be a nuisance.

Thanks again.

Regards
Tony

(aka HamSoles)

  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