CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 01-24-2008, 02:06 AM   #1
gonzalimator
Animator
 
gonzalimator's Avatar
Marcos González
Vancouver, Canada
 
Join Date: Jan 2006
Posts: 233
Animation - stepping through keys without Undo queue

I'm still pretty new to Maya and I found it frustrating that when I'm animating, all of my previous and next key actions were being recorded in the undo history. This was obviously very annoying when after toggling through several keys back and forth I wanted to undo a key that was previously set (or whatever action you want to get rid of...)

I searched all over for this information but I couldn't find it. I came across the mel command "undoInfo" here and then created custom Next Key and Previous key Hotkeys to include it. I thought I would share this information in case people out there didn't know this was possible.

In the Hotkey Editor Window, go to Playback Control and add two new hotkeys. (I called mine "CustomNextKey" and "CustomPreviousKey". Place the following commands in each (not the underlined bit):

CustomNextKey Hotkey
undoInfo -swf off;
currentTime -edit `findKeyframe -timeSlider -which next`;
undoInfo -swf on;

CustomPreviousKey Hotkey
undoInfo -swf off;
currentTime -edit `findKeyframe -timeSlider -which previous`;
undoInfo -swf on;

Now just reassign the "." to your new Next hotkey and the "," to your new Previous hotkey and enjoy instant/predictable undos. Nice!

M.

Last edited by gonzalimator : 11-19-2008 at 10:15 AM.
 
Old 01-24-2008, 02:06 AM   #2
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 08:46 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.