delete all keyframes on selected objects except keys on current frame


#1

Is this possible?


#2

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;

}


#3

Nevermind… I found a better way around my problem.


#4

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.