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--) {
property.removeKey(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?