Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Use slider to control time of precomp?

  • Use slider to control time of precomp?

    Posted by Matt Hall on January 2, 2007 at 10:05 pm

    Hi-

    I have a layer that is a 3d render of a brain turning from left to right (Frame 1 the brain is looking all the way left, frame 100 it is looking all the way right) I’d like to be able to use a slider to control the playback of the layer. So when I pull the slider to the right the brain rotates right, and vice-versa. I have been using time remapping to do it, but it’s sort of messy. Any suggestions?

    Thanks!

    ……………………..
    Matt Hall
    Hallway Media, LLC
    http://www.hallway-media.com

    Matt Hall replied 19 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 2, 2007 at 10:43 pm

    I would think a time remapping expression like this would do the trick:

    sliderVal = effect(“Slider Control”)(“Slider”);
    Math.round(sliderVal)*thisComp.frameDuration

    Dan

  • Matt Hall

    January 3, 2007 at 3:25 pm

    Perfect! Thanks Dan.

    ……………………..
    Matt Hall
    Hallway Media, LLC
    http://www.hallway-media.com

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