Return-Path: Received: from mail-lb0-f169.google.com ([209.85.217.169] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4831727 for AE-List@media-motion.tv; Fri, 31 Aug 2012 19:01:48 +0200 Received: by lbon3 with SMTP id n3so1238896lbo.28 for ; Fri, 31 Aug 2012 10:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=CkGh6+Lt42/bUXDEh6v+OETghyccyZ3A5RwkTmlrYOY=; b=Q+ygrPLigUpC6+gcZz0yt/fPShRww4ZdTy0nsmA0QY/Ur8C09OCOmKR9Uya6jZQOHr nemaIs3Y4TQv/vqpx8vDXls6jjpWYM7cp/9pBejp3Hs2rDY68hul1D5KsSW21yU2Zh0C dGrtaUGTMdFZvNCSX2PKDnI1hP/utZ89AKabvmqjEhPCtJe/hp2jotM5A3kOKg4Q0FFt hPP45xgIQjDhOFeGW/4f6G8iKj7D7U+0jtNuC5UEOzRUYuvkUyhNBkgZmGrRReuiYV3D 2/IgZZsaacwX9GPHW0KnquE+hnlwNzf0vI0F+oHcTH74YTtfCeCUbfY0kHWlJNBcig36 w1Cg== Received: by 10.152.162.10 with SMTP id xw10mr7053091lab.12.1346432561321; Fri, 31 Aug 2012 10:02:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.148.194 with HTTP; Fri, 31 Aug 2012 10:02:00 -0700 (PDT) In-Reply-To: References: From: Teddy Gage Date: Fri, 31 Aug 2012 13:02:00 -0400 Message-ID: Subject: Re: [AE] building a dynamic node-like effect in AE To: After Effects Mail List Content-Type: multipart/alternative; boundary=f46d042f92ec8815af04c892c204 --f46d042f92ec8815af04c892c204 Content-Type: text/plain; charset=ISO-8859-1 Ah I went the lazy man's route and just re-cut the layers to start at their original in-point. But that makes a lot of sense as to why the transition didn't occur at the "visual layer in-point." And should be extremely useful in the future. Then, because ft-Instance won't link to expressions I used an animation preset of the instanced effect (still referencing the master effect) and dropped it on all the layers. But then I still couldn't change the transition length for all of them at once, because that info was just a number embedded in the transition expression. so I made a slider control, linked that to transition length, and now all the effect-preset-instanced expressions could be changed from that one variable slider. I DARE the client to ask me to change the page peel length again! sorry for the email flood guys. too much coffee this morning. On Thu, Aug 30, 2012 at 6:22 PM, Chris Zwar wrote: > On 31/08/2012, at 4:11 AM, Teddy Gage wrote: > > The second issue I'm now having is that even though "this.inPoint" is > supposed to start at the layer's inpoint, I still have to scrub the layer > back in time to find out where it is actually starting the transition. Is > there another pointer besides this.inPoint? I tried thisLayer.inPoint and > it was still starting the transition back at the zero mark, even if the > layer didn't start being visible until 30 seconds in. This could be because > I split the layers (they are stills) and it's looking at the origin in > point and not the actual in point in the composition. does that make any > sense? > > > Hi, > > Just to give you something different to think about, I usually build these > sort of automated expressions to work in numbers of frames. I tend to > think of 25 - 50 frame transitions rather than 1 or 2 second transitions. > This code sets up a few basic variables that I use: > > // in seconds // > start=thisLayer.inPoint; > end=thisLayer.outPoint; > dur=end-start; > count=time-start; > > //in frames // > fps = 1 / thisComp.frameDuration; > start=start*fps; > end=end*fps; > dur=dur*fps; > count=count*fps; > count=clamp(count,0,dur); // optional // > > [count] > > If you want a variable that counts the number of frames into the layer it > is, you need to subtract the layer's in-point from the composition time. > This might be the hint you're after. > > > -Chris > -- Animator & Editor www.teddygage.com Brooklyn --f46d042f92ec8815af04c892c204 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ah I went the lazy man's route and just re-cut the layers to start at t= heir original in-point. But that makes a lot of sense as to why the transit= ion didn't occur at the "visual layer in-point." And should b= e extremely useful in the future. Then, because ft-Instance won't link = to expressions I used an animation preset of the instanced effect (still re= ferencing the master effect) and dropped it on all the layers. But then I s= till couldn't change the transition length for all of them at once, bec= ause that info was just a number embedded in the transition expression. so = I made a slider control, linked that to transition length, and now all the = effect-preset-instanced expressions could be changed from that one variable= slider. I DARE the client to ask me to change the page peel length again!<= br>
sorry for the email flood guys. too much coffee this morning.=A0
On Thu, Aug 30, 2012 at 6:22 PM, Chris Zwar <chris@chriszwar.com> wrote:
On 31/08/2012, at 4:11 AM, Teddy Gage wrote:
The second issue I'm now having is that even though "this.inPoint&= quot; is supposed to start at the layer's inpoint, I still have to scru= b the layer back in time to find out where it is actually starting the tran= sition. Is there another pointer besides this.inPoint? I tried thisLayer.in= Point and it was still starting the transition back at the zero mark, even = if the layer didn't start being visible until 30 seconds in. This could= be because I split the layers (they are stills) and it's looking at th= e origin in point and not the actual in point in the composition. does that= make any sense?

Hi,

Just to give= you something different to think about, I usually build these sort of auto= mated expressions to work in numbers of frames. =A0I tend to think of 25 - = 50 frame transitions rather than 1 or 2 second transitions. =A0This code se= ts up a few basic variables that I use:

// in seconds //
start=3DthisLayer.inPoint;
end=3DthisLayer.outPoint;
dur=3Dend-start;
count=3Dtime-start;

//in frames //
fps =3D 1 / thisComp.frameDuration;
start=3Dstart*fps;
end=3Dend*fps;
dur=3Ddur*fps;
count=3Dcount*fps;
count=3Dclamp(count,0,dur); // optional //

[count]

If you want a variable that counts the number of frames into the layer i= t is, you need to subtract the layer's in-point from the composition ti= me. =A0This might be the hint you're after.


-Chris



--
Animator & Editorwww.teddygage.com
Brooklyn

--f46d042f92ec8815af04c892c204--