Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Refrence keyframes regarless of position on the timeline

  • Refrence keyframes regarless of position on the timeline

    Posted by Brennanc on October 12, 2007 at 3:19 pm

    Hey hey all.

    First off, thanks for the scaling expression Dan, I modified it a bit to compensate for the vagueness of my original description.

    I have another quick question though. I created a null object with a slider that has only 2 keyframes, first @ 00:00 with a value of 90 and the second @ 6 seconds with a value of 100.

    My subsequent layers start every 6 seconds but i would like them to reference the animation from the null. Here’s what i have so far…

    Scale = thisComp.layer(“ScaleUp”).effect(“Slider Control”)(“Slider”);

    if(width < height) { y = thisComp.height*thisComp.pixelAspect/(height*source.pixelAspect); x = y; } else { x = thisComp.width*thisComp.pixelAspect/(width*source.pixelAspect); y = x; } [x,y]*Scale;

    So how do I tell it to grab the sliders value from the first 6 seconds regardless of where this layer is on the timeline?

    Thanks so much!

    -Brennan

    Brennanc replied 18 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 12, 2007 at 5:00 pm

    Try changing your first line to this:

    Scale = thisComp.layer(“ScaleUp”).effect(“Slider Control”)(“Slider”).valueAtTime(time – inPoint);

    By the way, you shouldn’t be using pixelAspect correction on height values, just width (I think).

    Dan

  • Brennanc

    October 12, 2007 at 5:19 pm

    That’s the money. Thanks a bunch!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy