script not working?
All  1  2-5

Previous
Next
 From:  Michael Gibson
3993.2 In reply to 3993.1 
Hi Armin, the script seems to be correct there, I just tested pasting your same script into a shortcut key and it seems to work fine over here.

But you mention that you're editing the .ini file directly? If you add in a shortcut key using that method you've got to make sure to add it to the [Shortcut Keys] section of the .ini file, it can't just be pasted in anywhere.

Also if you're editing the moi.ini file, make sure to shut down all current running instances of MoI first before editing it. Since MoI writes settings to the moi.ini file when it closes, if you try to edit that file while some instance of MoI is running, your direct changes can get overwritten when that running instances closes.


You also might try putting it in using the Options dialog, under Options > Shortcut keys?

If you're still having problems can you please post your moi.ini file here so I can take a look at it?

- 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:  armin
3993.3 In reply to 3993.2 
Michael,

Thanks for the fast reply. I double checked everything. My mistake ... I assumed the script would
toggle "Straight Snap" on/off, but it actually does something else, sorry.
But is there a script by chance that does that?

Armin
  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
3993.4 In reply to 3993.3 
Hi Armin, for toggling Straight snap, use this:

script:moi.drawingAids.straightSnap = !moi.drawingAids.straightSnap;

Yeah that other one called "Axis snap" is what enables snapping on to the x and y axis of the grid as if they were lines, in the UI it is controlled by this check box here:



- Michael
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

Previous
 From:  armin
3993.5 In reply to 3993.4 
Hi Michael,

Thanks for the script.

Armin
  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-5