Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Offset keys (again, but in another way)

  • Offset keys (again, but in another way)

    Posted by Hannes Paulsson on September 12, 2011 at 3:43 pm

    This is the third thread I do about this project. It’s the one with the 256 precomps. 🙂

    I’m looking for an expression that offsets the animation based on the layers place in the composition (index?).
    Let’s say I have ten layers, who I want to rotate on the x-axis in a flowing motion, one after the other, but I want to be able to controll all of them from one null.

    First I’ll take the value from the null with by simply writing “thisComp.layer(“Null 1″).transform.xRotation”, but then I’m stuck. Im guessing I’m supposed to use framesToTime and valueAtTime and index somehow, but I can’t seem to figure it out.

    Thank!
    Hannes

    Hannes Paulsson replied 14 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    September 12, 2011 at 4:28 pm

    Assuming that Layer 1 is the first layer participating, it will look like this:

    delay = .1;
    thisComp.layer(“Null 1”).transform.xRotation.valueAtTime(time – (index-1)*delay);

    Dan

  • Hannes Paulsson

    September 13, 2011 at 10:18 am

    Awesome! You are really saving my ass with this project. 🙂
    Thanks alot!

  • Hannes Paulsson

    September 20, 2011 at 1:34 pm

    One of my colleague thought it wouldn’t be a nice idea to start posting the results of what we have done with the help we have gotten on this forum.

    So I thought I’d post the finished result of this project and try to start a new trend on the forum :). I’ts a trailer for the swedish channel 5.

    https://www.kanal5play.se/klipp/play/vemlangtarduefter

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