From: "angie@angietaylor.co.uk" Received: from douglas.footholds.net ([188.65.117.69] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5532585 for AE-List@media-motion.tv; Thu, 24 Jul 2014 13:09:27 +0200 Received: from [2.120.242.128] (port=58468 helo=[192.168.0.8]) by douglas.footholds.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XAGtq-00051j-7G for AE-List@media-motion.tv; Thu, 24 Jul 2014 12:09:27 +0100 Content-Type: multipart/alternative; boundary="Apple-Mail=_09F35038-C70B-4696-8C47-54C96454761C" Message-Id: <22BD5374-0DE4-4FC6-869D-E2872ECC09E9@angietaylor.co.uk> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: [AE] Text expression selector syntax error? Date: Thu, 24 Jul 2014 12:09:26 +0100 References: To: =?iso-8859-1?Q?After=A0Effects=A0Mail=A0List_Mail_List?= In-Reply-To: X-Mailer: Apple Mail (2.1874) X-OutGoing-Spam-Status: No, score=-2.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - douglas.footholds.net X-AntiAbuse: Original Domain - media-motion.tv X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - angietaylor.co.uk X-Get-Message-Sender-Via: douglas.footholds.net: authenticated_id: angie@angietaylor.co.uk X-Source: X-Source-Args: X-Source-Dir: --Apple-Mail=_09F35038-C70B-4696-8C47-54C96454761C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 PS I removed the unnecessary step of adding Anchor Point animator as the = anchor for Rotation can be adjusted in the More Options > Grouping = Alignment settings :-) On 24 Jul 2014, at 12:07, angie wrote: > Just tried it out and it works for me. Here=92s my setup. >=20 >=20 > >=20 >=20 >=20 >=20 > On 24 Jul 2014, at 11:31, Phil Bearman = wrote: >=20 >> Hi all, >>=20 >> I'm trying to use an expression in a text animation, but getting a = (non specific) syntax error after it runs for a few frames (the name of = frames before it throws up the error seems to be variable). >>=20 >> The expression is: >>=20 >> swings=3D3;=20 >> timeOffset=3D0.25;=20 >> v=3DvalueAtTime(time-timeOffset*textIndex/textTotal)[0];=20 >> anim=3D2*Math.PI*v/100;=20 >> amp=3DeaseOut(v,0,100,100,0);=20 >> Math.cos(anim*swings)*amp; >>=20 >> Applied to the 'Amount' in the expression selector. >>=20 >> It's based on these instructions: = http://www.motion-graphics-exchange.com/after-effects/3D-swing-in-pendulum= -text/4ad3a609eafd3 >>=20 >> It works fine if I base it on Words, but if I base it on Lines it = fails. Any suggestions for why this might throw up a syntax error like = this? >>=20 >> Any help much appreciated as always! >>=20 >> Phil >>=20 >> --=20 >> Phil Bearman >>=20 >> Phil Bearman Creative Media Solutions=20 >> Motion Graphics Design >>=20 >> www.PhilBearman.co.uk : Nightclub & Bar ~ Production, Corporate & = Events ~ DVD Products=20 >>=20 >>=20 >>=20 >> 2004-2014 - Celebrating 10 years in business! Click here for 10th = anniversary video clip giveaway=20 >>=20 >> 0161 236 2581 - 9am-5pm, Monday-Friday >>=20 >> This message contains confidential information and is intended only = for the individual named. If you are not the named addressee you should = not disseminate, distribute or copy this E-Mail. Please notify the = sender immediately by E-Mail if you have received this E-Mail by mistake = and delete the E-Mail from your system. E-Mail transmission cannot be = guaranteed to be secure or error-free as information could be = intercepted, corrupted, lost, destroyed, arrive late or incomplete, or = contain viruses. The sender therefore does not accept liability for any = errors or omissions in the contents of this message or attached = documents or for any damage suffered by your computer system caused by = any errors or viruses contained in the E-Mail message or any attached = documents. >>=20 >=20 --Apple-Mail=_09F35038-C70B-4696-8C47-54C96454761C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
PS I = removed the unnecessary step of adding Anchor Point animator as the = anchor for Rotation can be adjusted in the More Options > Grouping = Alignment settings :-)



On 24 Jul 2014, at 12:07, angie <AE-List@media-motion.tv> = wrote:

Just tried it out and it works for me. Here=92s my = setup.


<Screen-Shot-2014-0= 7-24-at-12.05.10.jpg>




On 24 Jul 2014, at 11:31, Phil Bearman <AE-List@media-motion.tv> = wrote:

Hi all,

I'm trying to = use an expression in a text animation, but getting a (non specific) = syntax error after it runs for a few frames (the name of frames before = it throws up the error seems to be variable).

The expression = is:

swings=3D3; 
timeOffset=3D= 0.25; 
v=3DvalueAtTime(time-timeOffset*textIndex/textTotal)= [0]; 
anim=3D2*Math.PI*v/100; 
amp=3DeaseOut= (v,0,100,100,0); 
Math.cos(anim*swings)*amp;

Applied = to the 'Amount' in the expression = selector.


It works fine if I base it on Words, but if I base = it on Lines it fails. Any suggestions for why this might throw up a = syntax error like this?

Any help much = appreciated as always!

Phil

-- =

Phil Bearman

Phil Bearman Creative Media Solutions=20
Motion Graphics Design

www.PhilBearman.co.uk : = Nightclub=20 & Bar ~ = Production, Corporate=20 & Events ~ = DVD = Products&nbs= p;


=

2004-2014 - Cele= brating 10 years in business! &nbs= p; Click = here for 10th anniversary video clip giveaway 


0161 236 2581 - 9am-5pm, = Monday-Friday

This message=20 contains confidential information and is intended only for the = individual named.=20 If you are not the named addressee you should not disseminate, = distribute or=20 copy this E-Mail. Please notify the sender immediately by E-Mail if = you have=20 received this E-Mail by mistake and delete the E-Mail from your = system. E-Mail=20 transmission cannot be guaranteed to be secure or error-free as = information=20 could be intercepted, corrupted, lost, destroyed, arrive late or = incomplete,=20 or contain viruses. The sender therefore does not accept liability for = any errors=20 or omissions in the contents of this message or attached documents or = for any=20 damage suffered by your computer system caused by any errors or = viruses contained=20 in the E-Mail message or any attached = documents.

=


= --Apple-Mail=_09F35038-C70B-4696-8C47-54C96454761C--