Mailing List AE-List@media-motion.tv ? Message #45591
From: Teddy Gage <teddygage@gmail.com>
Subject: Re: [AE] building a dynamic node-like effect in AE
Date: Fri, 31 Aug 2012 13:02:00 -0400
To: After Effects Mail List <AE-List@media-motion.tv>
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 <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" 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

 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster