Return-Path: Received: from mail-ea0-f178.google.com ([209.85.215.178] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4960803 for AE-List@media-motion.tv; Sun, 27 Jan 2013 03:08:18 +0100 Received: by mail-ea0-f178.google.com with SMTP id a14so696882eaa.37 for ; Sat, 26 Jan 2013 18:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=X6Vva9HT77q2CIGCk5GIisilPiolq9wJRO6y6vCTJRk=; b=Bufkq+W4UvVu1YCTnsgMePwrXnCKf2g6svtAvxH9kQqhMmqFrPEdWSxOg2r3kgpbnm 7p4CtckmpUyty/dPemZFUr6aA/kkrS4NfAYbSlcZfJV5+jP8d08yGZXdBx6F96yJHJif 5jkiYkRGM+H9UNJqpcA7Kw0afmDIqCCKvUs0pv9k3eUB6eyc+BLUHDItk1EPtTVq5WsS uw11HDi7AKQ2GX+NBB1koxWDEvH0L6eUEmIXdxzmTYPDHrbjuonSi8fnuEVdJc0hrCtl HFhbNULdoXUpj7F4hIqpZKAmOD+NEP4b+9g7Dvkzo3lXuwZRPvbiNms5+pXH4zk+TGTs CSpg== X-Received: by 10.14.173.69 with SMTP id u45mr36112584eel.21.1359252833879; Sat, 26 Jan 2013 18:13:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.132.201 with HTTP; Sat, 26 Jan 2013 18:13:33 -0800 (PST) In-Reply-To: References: From: Bruce Wainer Date: Sat, 26 Jan 2013 21:13:33 -0500 Message-ID: Subject: Re: [AE] Expression problem: Bad method arguments: one argument to mul() must be a scalar To: After Effects Mail List Content-Type: multipart/alternative; boundary=047d7b6039f452c5d104d43bb681 --047d7b6039f452c5d104d43bb681 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable This'll do it for you. Just amke the array manually using the index numbers= . cam =3D thisComp.layer("camera 1"); distance =3D length(sub(position , cam.position)); s =3D distance / cam.zoom; scale =3D [scale[0]*s,scale[1]*s,0]; Bruce Wainer On Sat, Jan 26, 2013 at 9:09 PM, scott.aelist 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 wrote= : > >> I=92d just change the last line to this: >> >> scale*s; >> >> > --047d7b6039f452c5d104d43bb681 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
This'll do it for you. Just amke the array manually us= ing the index numbers.

cam =3D thisComp.layer("camera 1&qu= ot;);
distance =3D length(sub(position , cam.position));
s =3D distan= ce / cam.zoom;
scale =3D [scale[0]*s,scale[1]*s,0];

Bruce Wainer


On Sa= t, Jan 26, 2013 at 9:09 PM, scott.aelist <scott.aelist@gmail.com&= gt; 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 Ebb= erts <debberts@comcast.net> wrote:
I=92d just change the last line to this:
=A0
scale*s;

=


--047d7b6039f452c5d104d43bb681--