Wednesday 13 May 2015

Shortcuts for Next and Previous Keyframe

That's one super simple script, but one that I use all the time to animate. In Max, you have a Key Mode Toggle button to switch between 'Previous/Next Frame' and 'Previous/Next Key'.
After using Motionbuilder I found that having two different sets of shortcuts for each function was much more handy, so I wrote these very simple scripts.

 macroScript Next_Key  
 ButtonText:"Next Key"  
 category:"Vin"   
 internalcategory:"Vin"  
 (  
      max key mode  
      max time forward  
      max key mode  
 )  
 macroScript Prev_Key  
 ButtonText:"Previous Key"  
 category:"Vin"   
 internalcategory:"Vin"  
 (  
      max key mode  
      max time back  
      max key mode  
 )
You might have guessed it, what they do is toggling the key mode, going back/forward and toggling again. So if you activate the Key Mode Toggle, the behavior of your shortcuts is inverted. I personally assign these macros to Right and Left Arrows, to keep it like in Motionbuilder, and it works super fine! See how to use macroScripts here.



No comments:

Post a Comment