Page 1 of 1

Deleting keyframes

Posted: June 1st, 2006, 6:03 am
by knubile
What is the best way to delete keyframes for a property?
I am currently looping through all keyframes and deleting them one at a time. This is taking way to long to run.
Is there a property I can just switch on a layer off then on, or any other way?

Thanks

Posted: June 1st, 2006, 7:57 pm
by nab
Hi knubile,
i'm pretty sure that the equivalent of clicking on the stopwatch to deactivate all existing keyframes is not possible via a script.
To my knowledge the "best way" is the way you did it, i.e. a simple loop calling removeKey().

Making a property non-animated

Posted: November 5th, 2006, 4:04 am
by Darkmoon_UK
Yes, I came to the same conclusion that the only way to make a property static through script is to loop and remove keyframes. Would be glad to be proved wrong though...!