Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scrubing through time with a position value.

  • Scrubing through time with a position value.

    Posted by Justin Maloney on January 15, 2016 at 5:14 pm

    Hey there, so I’m trying to link a position x value to a time remap. I’m using the linear expression which is working, but the time value isn’t animating very smoothly. Basically I’m trying have 11 seconds of animation scrub back and forth.

    Isn’t there a way to convert time to some value that will work better in a linear expression? I’ve tried googling it and searching here but I can’t find exactly what I’m looking for.

    Thanks in advance! =D

    On Time Remap

    t = comp("99 RENAME ME!").layer("Facial Control").transform.position[0];
    linear(t, -415, 235, 0, 315)

    Justin Maloney replied 10 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 15, 2016 at 5:35 pm

    If it’s 11 seconds, it seems like the last line would be:

    linear(t, -415, 235, 0, 11)

    Dan

  • Justin Maloney

    January 15, 2016 at 5:59 pm

    Well I’m feeling kinda stupid. That actually helped alot. I tried using framesToTime in front of my linear expression too. It helped a little. I’m still wondering if there is a more precise method but these are working for me now.

    Thanks Dan!

    x = comp("99_RENAME_ME").layer("Facial Control").transform.position[0]
    framesToTime(linear(x,-600,600,15,315))

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