Save a time value

Moderators: Disciple, zlovatt

Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

You know - I think you're back to your original problem. You need to know when your time remapped layer got depositied at it's position and I don't think there's a straight forward way to calculate it. The only way I can think of to do it is to loop back through time to find out how long it's been in position. I think it would look something like this:

t = thisComp.layer("template");
travel = t.effect("travel")("Slider")/100;

offset = 0;
while(t.effect("travel")("Slider").valueAtTime(time - offset)/100 > index/(thisComp.numLayers - 1)){
offset += thisComp.frameDuration;
}
offset


I haven't tried it, but it should be close.

Dan
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

That's it! Thanks for all the help Dan.

Image
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

That's a pretty cool effect Byron. I like it!

Dan
Post Reply