PDA

View Full Version : delete all keyframes on selected objects except keys on current frame


phifehinds
02-01-2013, 03:54 AM
Is this possible?

mosari
02-01-2013, 04:43 AM
this script delete all channels in every frame except the current one

//-----------------------------------------------------
float $currentKey = `currentTime -q`;
float $firstKey = `findKeyframe -timeSlider -w first`;
float $lastKey = `findKeyframe -timeSlider -w last`;
int $counter;
for($counter = $firstKey; $counter <= $lastKey; $counter ++) {

if($counter == $currentKey)
continue;

currentTime -e $counter;
timeSliderClearKey;
}

phifehinds
02-01-2013, 07:35 AM
Nevermind... I found a better way around my problem.

CGTalk Moderation
02-01-2013, 07:35 AM
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.