'reset viewport' shortcut

Next
 From:  blackhoney
3894.1 
Hello,
I've found the script to reset all viewports at once.
Is there a way to set my 'f' key as a shortcut to reset the active viewport?

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:  DannyT (DANTAS)
3894.2 In reply to 3894.1 
Hi blackhoney,

This will do the viewport that the mouse cursor is in or last clicked.

script:moi.ui.getActiveViewport().reset();

Cheers
~Danny~
  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:  blackhoney
3894.3 In reply to 3894.2 
Perfect, thanks Danny
  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