Deleting keyframes

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
knubile
Posts: 8
Joined: May 18th, 2006, 10:25 pm

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
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

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().
Darkmoon_UK
Posts: 62
Joined: September 5th, 2006, 3:45 am
Location: Chiswick, London, UK
Contact:

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...!
Post Reply