Hello Jean Livenais
NOTE- Not all error code is nothing
It might be pointing you to the way forward but if you can decode it , you can be pixee of or even fed up
Have finally decided and solved it for you with the meaning of each which will help you understand how to solve the errors
Kindly read through carefully
Answer is
“n=0;
m=thisLayer.marker;
//fadeTime = framesToTime(fadeFrames);
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (time < m.key(n).time) n–;
if (n > 0){
t = time – m.key(n).time;
if (m.key(n).value)
{
fadeFrames = m.key(n).duration;
L1 = eval(m.key(n).comment.split(” “)[0]);//-50;
L2 = eval(m.key(n).comment.split(” “)[1]);//-12;
v = linear(t,0,fadeFrames,L1, L2);}
else{
v = linear(t,0,fadeFrames,L2, L1);
}
}else{[L1,L1]}
[v,v]”
This code, which calculates a marker’s value based on its parameters at a particular time, was built in the scripting language of Adobe After Effects.
Two variables, n and m, are initially initialized in the code. Whereas m is given the value of the marker for the current layer, n is given the value of zero.
Then, it determines whether the marker contains any keyframes. If it does, it uses the nearestKey() method to identify the keyframe that is the closest to the current time (in seconds) and assigns its index to the variable n.Answer is
“n=0;
m=thisLayer.marker;
//fadeTime = framesToTime(fadeFrames);
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (time < m.key(n).time) n–;
if (n > 0){
t = time – m.key(n).time;
if (m.key(n).value)
{
fadeFrames = m.key(n).duration;
L1 = eval(m.key(n).comment.split(” “)[0]);//-50;
L2 = eval(m.key(n).comment.split(” “)[1]);//-12;
v = linear(t,0,fadeFrames,L1, L2);}
else{
v = linear(t,0,fadeFrames,L2, L1);
}
}else{[L1,L1]}
[v,v]”
This code, which calculates a marker’s value based on its parameters at a particular time, was built in the scripting language of Adobe After Effects.
Two variables, n and m, are initially initialized in the code. Whereas m is given the value of the marker for the current layer, n is given the value of zero.
Then, it determines whether the marker contains any keyframes. If it does, it uses the nearestKey() method to identify the keyframe that is the closest to the current time (in seconds) and assigns its index to the variable n.
Thank you