About Me

Monday, September 19, 2011

HotKey Alt<> broken in 2012

Just a quick post about the hotkey mapping in 2012. The main Alt<> keys which advance time in the UI's are now broken in the GrapthEditor, this has been driving some of our animator mad as you can imagine. The command thats now bound to it in 2012 is wrong (a fix in due from Autodesk but not sure if it'll get into the SP1 release). So the bug is that the commands bound to the NextFrame and PreviousFrame calls look if the current UI is a scriptedPanel and only advance the time if that panel is the CameraSequencer...Wrong! Here's the fix for the NextFrame, for Previous from just put -1 in the `cuurentTime -q` -1 block
string $currentPanel = `getPanel -withFocus`; 
if((`getPanel -to $currentPanel`== "scriptedPanel") && (`scriptedPanel -q -type $currentPanel`== "sequenceEditorPanel"))
sequenceManager -ct ( `sequenceManager -q -ct ` + 1 ); 
else { currentTime ( `currentTime -q` + 1 );}

Maya's current command bound to the Alt> key
string $currentPanel = `getPanel -withFocus`; 
string $panelType = `getPanel -to $currentPanel`; 
if ($panelType == "scriptedPanel") 
    string $scriptedPanelType = `scriptedPanel -q -type $currentPanel`; 
    if ( $scriptedPanelType == "sequenceEditorPanel")
    { sequenceManager -ct ( `sequenceManager -q -ct ` + 1 ); }
else { currentTime ( `currentTime -q` + 1 ); }