Page 1 of 1

How to clear all keys of a property

Posted: December 4th, 2022, 8:12 am
by SolidBlock

I know I can clear all keys of a property through the following code:

Code: Select all

    for (var index = property.numKeys; index >=1; index--) {

However, when I actually practise it, it consumes quite a long time, if the property has many keys. I don't know why it is so time-consuming. If I manually click the clock button in the AE instead of using the code, it can be quickly done.
So is there any method to quickly clear all markers of a property?