FR Button to toggle snap to locked objects.

Next
 From:  Dodgy (DODGYB2001)
10648.1 
That's it really. It's a pain to go into the Options panel just to turn this off and on, would be much nicer to have a button.

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
10648.2 In reply to 10648.1 
Hi Dodgy, you can set up a keyboard shortcut to do that.

Go to Options > Shortcut keys and push Add.

After setting the key you want to use, put this in for the Command part:

script: /* Toggle snap to locked objects */ moi.drawingAids.snapToLockedObjects = !moi.drawingAids.snapToLockedObjects;

Then you should be able to push that key to toggle it without needing to go into the Options dialog.

- 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:  Dodgy (DODGYB2001)
10648.3 In reply to 10648.2 
Thanks, I thought there might be a way to do it! I do find it useful that you can see the state of the snaps as well though, which you can't with a hotkey.
  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
10648.4 In reply to 10648.3 
Hi Dodgy, here's another way you can do it, put the attached script file in the MoI appdata startup folder. On Windows it's at %appdata%\Moi\startup , on Mac it's in ~/Library/Application Support/Moi/startup .

That will insert a "Snap to locked objects" checkbox on the bottom command bar and you can either click it or you can use the keyboard shortcut to switch it on/off.

- 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:  Dodgy (DODGYB2001)
10648.5 In reply to 10648.4 
Perfect! I can see I'm going to have to learn the scripting of MOI! I've written scripts for other packages, so I just need to learn the language!

Thanks,
Mike
  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