Hi Xavier,
Sorry for the late reply. I only just got around to testing this out today and it works perfectly.
I’ve run into a bit of a problem though, my script actually has position keyframes aswell:
var myPosition = myLayer[i].property(“position”);
myPosition.setValueAtTime(1,[512,288]);
myPosition.setValueAtTime(5,[512,288]);
so I thought Id add on a couple of keys to the variable:
var key1, key2, key3, key4;
and then add this:
key3 = myPosition.nearestKeyIndex(1);
key4 = myPosition.nearestKeyIndex(5);
myPosition.setTemporalEaseAtKey(key3, easeIn=[ease, ease, ease], easeOut=[ease, ease, ease]);
myPosition.setTemporalEaseAtKey(key4, easeIn=[ease, ease, ease], easeOut=[ease, ease, ease]);
however i get the following error:
Unable to call ‘setTemporalEaseAtKey’ because of parameter 2. Value array does not have 1 elements.
Any ideas?