I’d just change the last line to this:
scale*s;
Sent: Saturday, January 26, 2013 5:35 PM
Subject: [AE] Expression problem: Bad method arguments: one argument
to mul() must be a scalar
I'm
having difficulty multiplying. I simply want to say, for example "SCALE *
[2,2,0]" but I get the error "Expression problem: Bad method arguments:
one argument to mul() must be a scalar." What is wrong with my syntax? If
it matters below is the full expression i'm using
cam =
thisComp.layer("camera 1");
distance = length(sub(position ,
cam.position));
s = distance / cam.zoom;
scale*
[s,s,0];