Return-Path: Received: from qmta02.emeryville.ca.mail.comcast.net ([76.96.30.24] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4960788 for ae-list@media-motion.tv; Sun, 27 Jan 2013 02:41:56 +0100 Received: from omta15.emeryville.ca.mail.comcast.net ([76.96.30.71]) by qmta02.emeryville.ca.mail.comcast.net with comcast id spcq1k0021Y3wxoA2pnWl5; Sun, 27 Jan 2013 01:47:30 +0000 Received: from HPZ200 ([76.20.32.7]) by omta15.emeryville.ca.mail.comcast.net with comcast id spnV1k00709DSM08bpnVHi; Sun, 27 Jan 2013 01:47:29 +0000 Message-ID: <74BFAE45E84947958D187DC2053E1F3D@HPZ200> From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] Expression problem: Bad method arguments: one argument to mul() must be a scalar Date: Sat, 26 Jan 2013 17:47:32 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01CDFBED.37BDF7F0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1359251250; bh=NaUGqaiufRN9G1/sHfCtGMWjqb3R+PdZbixKXYcsT9Y=; h=Received:Received:Message-ID:From:To:Subject:Date:MIME-Version: Content-Type; b=Sgm/93uewXWVG1VoVdgV+Rj2sFq/mIVK1xqjEL22z++GdrAK4tRvwZGkWpwzU80y9 00yfk8ENePGCfpQkpBc+c6px2MNH1IJ6dleuIjUgJAwlmALkuxJ8LgwiZqXggNXhnD ZA+qZiJkUqBJDNb29Tv6n3OCzYi9StN15S0rjqlpXqZzHnxNf0R/dP3oh73zScaRE7 ZC56jje6D92meYt1eUfyxn61iM9vU+tVBlMOqVmOURc6EE/w0R34Q/KIr28ITWzAKS 6Ah0HLKlDBt11lU6cIvbGqEFe9eRnnByMCllNBvDFfw47KNMuPhOvIdzB9xZ/IA7VO ns4hR9kA/cwDw== This is a multi-part message in MIME format. ------=_NextPart_000_002C_01CDFBED.37BDF7F0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I=E2=80=99d just change the last line to this: scale*s; From: scott.aelist=20 Sent: Saturday, January 26, 2013 5:35 PM To: After Effects Mail List=20 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 =3D thisComp.layer("camera 1"); distance =3D length(sub(position , cam.position)); s =3D distance / cam.zoom; scale* [s,s,0]; ------=_NextPart_000_002C_01CDFBED.37BDF7F0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
I=E2=80=99d 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=20 to mul() must be a scalar
 
I'm=20 having difficulty multiplying. I simply want to say, for example "SCALE = *=20 [2,2,0]"  but I get the error "Expression problem: Bad method = arguments:=20 one argument to mul() must be a scalar."  What is wrong with my = syntax? If=20 it matters below is the full expression i'm using

cam =3D=20 thisComp.layer("camera 1");
distance =3D length(sub(position ,=20 cam.position));
s =3D distance / cam.zoom;
scale*=20 [s,s,0];
------=_NextPart_000_002C_01CDFBED.37BDF7F0--