Mailing List AE-List@media-motion.tv ? Message #47513
From: Bruce Wainer <brwainer@gmail.com>
Subject: Re: [AE] Expression problem: Bad method arguments: one argument to mul() must be a scalar
Date: Sat, 26 Jan 2013 21:13:33 -0500
To: After Effects Mail List <AE-List@media-motion.tv>
This'll do it for you. Just amke the array manually using the index numbers.

cam = thisComp.layer("camera 1");
distance = length(sub(position , cam.position));
s = distance / cam.zoom;
scale = [scale[0]*s,scale[1]*s,0];

Bruce Wainer


On Sat, Jan 26, 2013 at 9:09 PM, scott.aelist <scott.aelist@gmail.com> wrote:
ok but I want a non-uniform multiplication. I want to multiply the X and Y but not the Z.


On Sat, Jan 26, 2013 at 5:47 PM, Dan Ebberts <debberts@comcast.net> wrote:
I’d just change the last line to this:
 
scale*s;



 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster