Temporary Lock of Geometry via Keystroke & Moving Geometry?

Next
 From:  OSTexo
11939.1 
Hello,

I'm liking the defeaturing feature incorporated into MoI, one less application to bounce between.

I'd like to be able to quick lock/unlock via keystroke hold/tap to lock a curve or surface down so I can grab attached geometry that I'd like to defeature or delete. I could do the same via layers and objects but that sort of the defeats the expectation of something being MoI easy.

On a related note I think I tracked down the issue with surface movement? It doesn't usually work for me if I want to move a face and try to use a snapping point on the object itself. Using another object to snap works consistently well.

Also, I can't figure out how to assign a keystroke shortcut to Hide objects? Do I need a script for that?

Thanks.
  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
11939.2 In reply to 11939.1 
Hi OSTexo,

re:
> I'd like to be able to quick lock/unlock via keystroke hold/tap to lock a curve or surface down
> so I can grab attached geometry that I'd like to defeature or delete.

Do you mean lock like pushing the Edit > Lock button on the side pane? That makes objects not selectable?


> On a related note I think I tracked down the issue with surface movement? It doesn't usually work for me
> if I want to move a face and try to use a snapping point on the object itself. Using another object
> to snap works consistently well.

For now put in a point object (Draw curve > More > Point) at your target before doing the move.
This should be improved in the next release though, where the original object outline will show with
a light dashed wireframe like it does when moving an entire object currently.


> Also, I can't figure out how to assign a keystroke shortcut to Hide objects? Do I need a script for that?

Put in this:
script: moi.geometryDatabase.hide();


- 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:  OSTexo
11939.3 
Hello Michael,

Yes, I'd like to be able to select a surface and toggle lock it via keyboard shortcut. That'll allow me to stay in the work field rather than bouncing back and forth between work field and command selection. I wonder if it's possible to have lock history with that as well, may be helpful when dealing with levels of detail.

Sounds good, I'll continue the point helper trick when moving faces.

Is there a way to have hide and unhide history via keyboard shortcut similar conceptually to lock and unlock? For example if I have three objects and I hide them in order 1,2,3 is it possible to unhide them via keystroke 3,2,1?

That would be helpful as I'm making my way down different branches of a model to modify or defeature rather than searching for objects in the tree.

Thanks.
  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:  pressure (PEER)
11939.4 In reply to 11939.3 
Hi OSTexo,

Attached is a script called HideMem that I use in place of the native Hide. It keeps a memory of what was hidden last and if it's run again with nothing selected it will un-hide the most recently hidden stuff. The isolate part of it also works a little differently to allow drilling into nested groups.

I like your idea of storing the full history of hide operations so that they can be undone sequentially. This script could be modified to do that, though I don't have time to tackle that at the moment. One problem with this script is that it runs slowly in heavy scenes; especially those with a lot of nested groups.

Install by going to MoI's appdata folder.

On Windows you can find the MoI appdata folder by typing Win+R to bring up the Windows "Run" dialog and then type in:
%AppData%\Moi\

On Mac from a Finder window, go to the menu and pick Go > "Go to folder" and type in:
~/Library/Application Support/Moi/

You should see the folders “commands”, "startup", and "scripts". Put HideMem.htm and HideMem.js in scripts.

To set up shortcut keys go to Options > Shortcut Keys and paste in each of following three lines as a separate key:
code:
HideMem
script:/* view hidden objects */moi.command.setOption('HideMem', 'ctrl'); moi.command.execCommand('HideMem');
script:/* isolate */moi.command.setOption('HideMem', 'rmb'); moi.command.execCommand('HideMem');

To replace the native Hide button with this version put EditTabContent_customizer.js in the startup folder.

- Peer
Attachments:

  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