Return-Path: Received: from qmta07.emeryville.ca.mail.comcast.net ([76.96.30.64] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4787935 for ae-list@media-motion.tv; Thu, 26 Jul 2012 20:20:54 +0200 Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by qmta07.emeryville.ca.mail.comcast.net with comcast id f3hs1j0060x6nqcA76Qwkf; Thu, 26 Jul 2012 18:24:56 +0000 Received: from HPZ200 ([76.20.32.7]) by omta12.emeryville.ca.mail.comcast.net with comcast id f6Qw1j00209DSM08Y6Qwzb; Thu, 26 Jul 2012 18:24:56 +0000 Message-ID: <328245C53F7A420BAD9FE95C3422A198@HPZ200> From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] script for advancing to end of last paint stroke layer Date: Thu, 26 Jul 2012 11:24:56 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01CD6B21.49400E80" 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 This is a multi-part message in MIME format. ------=_NextPart_000_0014_01CD6B21.49400E80 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Something like this should work: { 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(); } Dan From: Evan Fotis=20 Sent: Thursday, July 26, 2012 7:22 AM To: After Effects Mail List=20 Subject: [AE] script for advancing to end of last paint stroke layer Hello, I'm trying to record a drawing session in AE using Paint in Write on = mode. However at the end of each stroke I have to stop drawing in layer = window, go down to the TL, expand all paint stroke key-frames with UU = and press K to advance to last key-frame. This slows down the process = big time and does not work every-time, otherwise I would have already = added this custom key sequence to my intuos, but ity doesn't work that = way. Apart from that, the Paint fx Brush Stroke sub-layers cannot be = sequenced like normal layers can. At least old Vector Paint had the shift paint option...=20 It would be very useful if a script could do that in one shot reliably, = binded to a hot key. This way "all one would need to do" is hit the = hot-key after each stroke! to get the CTI to the end of the last stroke = ad proceed with drawing along for a sequential stroke effect. Or if sequencing paint-strokes was possible. Any ideas to make drawing feasible within AE? =20 On 26-Jul-12 16:36, Kristaps Gr=C4=ABva wrote: Thank You so much for the tip! Found the script at = http://www.redefinery.com/ae/view.php?item=3Drd_MasksToShapes And it did the job :) =20 Kristaps =20 From: After Effects Mail List [mailto:AE-List@media-motion.tv] On = Behalf Of scott.aelist Sent: Thursday, July 26, 2012 3:41 PM To: After Effects Mail List Subject: Re: [AE] illustrator import / convert to shapes CS6 with no = stroke =20 Someone wrote a script that converts masks to shape layers. Copy your = paths in as masks and then run that on it.=20 On Thu, Jul 26, 2012 at 3:55 AM, Kristaps Gr=C4=ABva = wrote: Hi everyone! =20 I have to animate an artwork imported from illustrator. It consists = of many paths. The plan is a simple write-on (using =E2=80=9Etrim = paths=E2=80=9D feature of shape layers) + a bit of wiggle paths and = puppet tool distortions for secondary motion=E2=80=A6 Thought the new =E2=80=9Ecreate shapes from vector layer=E2=80=9D = feature would come in useful to avoid tedious multiple path copypasting = from illustrator. But! It only allows to convert illustrator paths that HAVE a stroke = applied. And if they do, converter expands the strokes to shapes, which = is useless for =E2=80=9Etrim paths=E2=80=9D method, in my case. =20 Isn=E2=80=99t there still a newer/quicker method to get multiple = paths from Illustrator to AE shapes apart from countless path = duplications/copypastes? :) =20 Huge thanks if any idea comes up :)=20 =20 Kristaps Griva broadcast graphics design LNT / TV5 / K2 www.lnt.lv =20 =20 =20 =20 =20 ------=_NextPart_000_0014_01CD6B21.49400E80 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Something=20 like this should work:
 
{
    function main(){
        var myComp =3D=20 app.project.activeItem;
        if (! myComp){
           =20 alert("No comp active.");
           =20 return;
        }
        if (!=20 (myComp.selectedLayers.length > 0)){
            = alert=20 ("No layer selected.");
           =20 return;
        }
        var myLayer =3D=20 myComp.selectedLayers[0];
        try{
            = var=20 myStrokes =3D=20 myLayer.property("Effects").property("Paint").property("Strokes");
        }catch(err){
            = alert=20 ("No paint strokes applied to selected layer.");
           =20 return;
        }
        var myBrush =3D=20 myStrokes.property(1);
        var myEnd =3D=20 myBrush.property("Stroke Options").property("End");
        myComp.time =3D=20 myEnd.keyTime(myEnd.numKeys);
    }
 
    main();
}
 
 
Dan
 
 
From: Evan Fotis
Sent: Thursday, July 26, 2012 7:22 AM
Subject: [AE] script for advancing to end of last paint = stroke=20 layer
 
Hello,
I'm=20 trying to record a drawing session in AE using Paint in Write on=20 mode.
However at the end of each stroke I have to stop drawing in = layer=20 window, go down to the TL, expand all paint stroke key-frames with UU = and press=20 K to advance to last key-frame. This slows down the process big time and = does=20 not work every-time, otherwise I would have already added this custom = key=20 sequence to my intuos, but ity doesn't work that way. Apart from that, = the Paint=20 fx Brush Stroke sub-layers cannot be sequenced like normal layers = can.
At=20 least old Vector Paint had the shift paint option...
It would be = very useful=20 if a script could do that in one shot reliably, binded to a hot key. = This way=20 "all one would need to do" is hit the hot-key after each stroke! to get = the CTI=20 to the end of the last stroke ad proceed with drawing along for a = sequential=20 stroke effect.
Or if sequencing paint-strokes was = possible.

Any ideas=20 to make drawing feasible within AE?
 
On 26-Jul-12 16:36, Kristaps Gr=C4=ABva = wrote:

Thank=20 You so much for the tip!

Found=20 the script at http://www.redefinery.com/ae/view.php?item=3Drd_= MasksToShapes

And it did the job :)

 

Kristaps

 

From: After=20 Effects Mail List [mailto:AE-List@media-motion.tv]=20 On Behalf Of scott.aelist
Sent: Thursday, July 26, = 2012 3:41=20 PM
To: After Effects Mail List
Subject: Re: [AE]=20 illustrator import / convert to shapes CS6 with no=20 stroke

 

Someone wrote a = script that=20 converts masks to shape layers. Copy your paths in as masks and then = run that=20 on it.

On Thu, Jul 26, 2012 at 3:55 AM, Kristaps = Gr=C4=ABva <kristaps.griva@lnt.lv> = wrote:

Hi everyone!

 

I have to animate an artwork imported from = illustrator. It=20 consists of many paths. The plan is a simple write-on (using = =E2=80=9Etrim paths=E2=80=9D=20 feature of shape layers) + a bit of wiggle paths and puppet tool = distortions=20 for secondary motion=E2=80=A6

Thought the new =E2=80=9Ecreate shapes from vector = layer=E2=80=9D feature=20 would come in useful to avoid tedious multiple path copypasting from = illustrator.

But! It only allows to convert illustrator paths = that HAVE a=20 stroke applied. And if they do, converter expands the strokes to = shapes,=20 which is useless for =E2=80=9Etrim paths=E2=80=9D method, in my = case.

 

Isn=E2=80=99t there still a newer/quicker method = to get multiple=20 paths from Illustrator to AE shapes apart from countless path=20 duplications/copypastes? :)

 

Huge thanks if any idea comes up :) =

 

Kristaps Griva

broadcast graphics design

LNT / TV5 / K2

www.lnt.lv

 

 

 

 


3D/=20=20

------=_NextPart_000_0014_01CD6B21.49400E80--