Mailing List AE-List@media-motion.tv ? Message #45068
From: David Torno <torno@sydefxink.com>
Subject: Re: [AE] script for advancing to end of last paint stroke layer
Date: Thu, 26 Jul 2012 14:37:48 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
You can also manually enter a shortcut key into the AE pref file for the first 20 scripts. Just make sure the shortcut isn't already used elsewhere in the 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 <evan.fotis@gmail.com> 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 = app.project.activeItem;
>>        if (! myComp){
>>            alert("No comp active.");
>>            return;
>>        }
>>        if (! (myComp.selectedLayers.length > 0)){
>>            alert ("No layer selected.");
>>            return;
>>        }
>>        var myLayer = myComp.selectedLayers[0];
>>        try{
>>            var myStrokes = myLayer.property("Effects").property("Paint").property("Strokes");
>>        }catch(err){
>>            alert ("No paint strokes applied to selected layer.");
>>            return;
>>        }
>>        var myBrush = myStrokes.property(1);
>>        var myEnd = myBrush.property("Stroke Options").property("End");
>>        myComp.time = myEnd.keyTime(myEnd.numKeys);
>>    }
>>    main();
>> }
>
>
> +---End of message---+
> To unsubscribe send any message to <ae-list-off@media-motion.tv>
>
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster