Q: Assign Series of Object Snaps into Hotkeys.
All  1  2-3

Previous
Next
 From:  Michael Gibson
10081.2 In reply to 10081.1 
Hi Elang, yes this is possible by putting in some script as the "Command" part of the shortcut key under Options > Shortcuts.

These are controlled by the moi.drawingAids object, which has these properties on it that can be set to true (checked) or false:

objectSnapOrigin
objectSnapAxis
objectSnapEnd
objectSnapMid
objectSnapCen
objectSnapInt
objectSnapQuad
objectSnapPt
objectSnapOn
objectSnapOnSrf
objectSnapPerp
objectSnapTan
objectSnapPerpPerp
objectSnapTanTan


re:
> - Ctrl + Alt + 1 : Checks (enable) Object Snap for Origin, Axis, and Points, and DISABLE any others.

This one would go like this:

script: var da = moi.drawingAids; da.objectSnapOrigin = da.objectSnapAxis = da.objectSnapPt = true; da.objectSnapEnd = da.objectSnapMid = da.objectSnapCen = da.objectSnapInt = da.objectSnapQuad = da.objectSnapOn = da.objectSnapOnSrf = da.objectSnapPerp = da.objectSnapTan = da.objectSnapPerpPerp = da.objectSnapTanTan = false;


> - Ctrl + Alt + 2 : Checks (enable) Object Snap for End, Mid, Intersection, and DISABLE any others.

script: var da = moi.drawingAids; da.objectSnapEnd = da.objectSnapMid = da.objectSnapInt = true; da.objectSnapOrigin = da.objectSnapAxis = da.objectSnapCen = da.objectSnapQuad = da.objectSnapPt = da.objectSnapOn = da.objectSnapOnSrf = da.objectSnapPerp = da.objectSnapTan = da.objectSnapPerpPerp = da.objectSnapTanTan = false;


> - Ctrl + Alt + 3 : Checks (enable) All of Object Snap.

script: var da = moi.drawingAids; da.objectSnapOrigin = da.objectSnapAxis = da.objectSnapEnd = da.objectSnapMid = da.objectSnapCen = da.objectSnapInt = da.objectSnapQuad = da.objectSnapPt = da.objectSnapOn = da.objectSnapOnSrf = da.objectSnapPerp = da.objectSnapTan = da.objectSnapPerpPerp = da.objectSnapTanTan = true;


For MoI v5 I've made a note to add something to set all or clear all with one script function call to make this kind of script to be shorter.


Hope this helps! - 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:  Elang
10081.3 In reply to 10081.2 
Thank you so very much, Michael.

You're breath taking! :)
  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

 

 
 
Show messages: All  1  2-3