-
marker name in the expression
Hi guys,
I am trying to make an automatic animation data driven (from layers called “val ++”).
and then i want to animate this property with the markers time and a simple ease() operator, but it looks that I cant name my markers with a variable…
what am I doing wrong in this?
Many Thanks
Daniele
n= 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;
}
};prev = n+1;
next = n+2;
K1 = String.valueOf(prev);
K2 = String.valueOf(next);Val1 = thisComp.layer("val "+prev).text.sourceText;
Val2 = thisComp.layer("val "+next).text.sourceText;T1 = parseInt(Val1.split(' '));
T2 = parseInt(Val2.split(' '));
U = marker.key(K1).time;
B = marker.key(K2).time;
TT = ease(time, U, B, T1, T2);
[TT, TT]