Return-Path: Received: from omr9.networksolutionsemail.com ([205.178.146.59] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4788131 for AE-List@media-motion.tv; Thu, 26 Jul 2012 23:33:48 +0200 Received: from cm-omr14 (mail.networksolutionsemail.com [205.178.146.50]) by omr9.networksolutionsemail.com (8.13.8/8.13.8) with ESMTP id q6QLbovv025281 for ; Thu, 26 Jul 2012 17:37:50 -0400 Authentication-Results: cm-omr14 smtp.user=torno@sydefxink.com; auth=pass (CRAM-MD5) X-Authenticated-UID: torno@sydefxink.com Received: from [76.171.120.197] ([76.171.120.197:53596] helo=[192.168.0.8]) by cm-omr14 (envelope-from ) (ecelerity 2.2.2.41 r(31179/31189)) with ESMTPA id F9/25-11751-EA8B1105; Thu, 26 Jul 2012 17:37:50 -0400 Subject: Re: [AE] script for advancing to end of last paint stroke layer References: From: David Torno Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (9B176) In-Reply-To: Message-Id: <25661EED-4AEF-4A22-B63C-A4C3E01DA923@sydefxink.com> Date: Thu, 26 Jul 2012 14:37:48 -0700 To: After Effects Mail List Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) You can also manually enter a shortcut key into the AE pref file for the fir= st 20 scripts. Just make sure the shortcut isn't already used elsewhere in t= he doc. David Torno Visual Effects Artist & Supervisor http://www.ghosttownmedia.com O: 213.739.2290 C: 818.391.6060 --------------------- http://www.sydefxink.com http://aeioweyou.blogspot.com http://mactex.blogspot.com "The most useless day is that in which we do not laugh" -Charles Field On Jul 26, 2012, at 2:28 PM, Evan Fotis wrote: > thanx a bunch!!! it works great, just that using keyed up to add a hotkey= will not work even though i assigned a number prefix.. > will try to work it out.. > On 26-Jul-12 21:24, Dan Ebberts wrote: >> { >> function main(){ >> var myComp =3D app.project.activeItem; >> if (! myComp){ >> alert("No comp active."); >> return; >> } >> if (! (myComp.selectedLayers.length > 0)){ >> alert ("No layer selected."); >> return; >> } >> var myLayer =3D myComp.selectedLayers[0]; >> try{ >> var myStrokes =3D myLayer.property("Effects").property("Paint"= ).property("Strokes"); >> }catch(err){ >> alert ("No paint strokes applied to selected layer."); >> return; >> } >> var myBrush =3D myStrokes.property(1); >> var myEnd =3D myBrush.property("Stroke Options").property("End"); >> myComp.time =3D myEnd.keyTime(myEnd.numKeys); >> } >> main(); >> } >=20 >=20 > +---End of message---+ > To unsubscribe send any message to >=20