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
Deleting keyframes
Moderator: Paul Tuersley
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().
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().
-
- 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...!