Page 1 of 1

must be scalar error

Posted: November 20th, 2008, 3:26 pm
by antoska
I am getting this error:
"argument 1 to ease() must be scalar"
I suppose there is an error getting x, y values at the same time but I can't see where is it. Any help?

Code: Select all

L =thisComp.layer("source") ;
M=comp("source").layer("White Solid 1");
m=marker.key(3)
m1=marker.key(4)
myComment=m.comment
myComment1=m1.comment

    t1 = L.position.valueAtTime(marker.key(myComment).time);
    t2 = L.position.valueAtTime(marker.key(myComment1).time);
    t3 = M.position.valueAtTime(M.position.key(3).time);
    t4 = M.position.valueAtTime(M.position.key(4).time);

    ease(value,t1,t2,t3,t4);

Re: must be scalar error

Posted: November 21st, 2008, 10:00 am
by kobyg
The first argument to the ease function (where you wrote "value") must be a scalar, comparable to the 2nd and 3rd parameters. I don't know what you are trying to do, or on what property you've used this expression, but writing "time" instead of "value" might do what you want...

Re: must be scalar error

Posted: November 26th, 2008, 5:29 am
by Mylenium
Yepp, time is what you are looking for, not value.

Mylenium