New Zooming Script All  1-7  8-9

Previous
Next
 From:  Michael Gibson
3001.8 In reply to 3001.7 
Hi Burr, no problem.

> Could I see one example added to this script that
> would toggle the sensativity back to a default value,
> say of 1, if it was already at .1

If you want to have a shortcut that just sets it directly to 1 on a certain keypress, use:

script: /* Set view button sensitivity */ moi.view.zoomButtonSensitivity = 1.0;


If you want just one single shortcut that flips back and forth between 0.1 and 1.0 every time you press it, that is also possible, here is that one:

script: /* Toggle view button sensitivity */ if ( moi.view.zoomButtonSensitivity != 1.0 ) { moi.view.zoomButtonSensitivity = 1.0; } else { moi.view.zoomButtonSensitivity = 0.1; }


- 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:  BurrMan
3001.9 In reply to 3001.8 
Hi Michael,
Yes the second was what I was after.

I'll study the different parameters, ie;

() and {} added that allow me to do the If/Else myself without bugging you for something so simple. :O

Thanks again!
  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-7  8-9