Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to change value at specific time

  • Expression to change value at specific time

    Posted by Noel Powell on September 26, 2016 at 8:06 pm

    I’m wondering if it’s possible to change the value of a property using a slider control, but only have it change at a certain frame. I’m trying to avoid using keyframes, if possible.

    I’m attempting to pause a CC Pixel Polly effect on a text layer, so that the text is broken apart, but with the pieces not moving. It won’t let me add a Time Freeze effect, but I discovered I can pause the particles by adding keyframes. For example, with the Force property set to 100, I’ll add a keyframe to Frame 0. Then on Frame 1, I’ll add a second keyframe with the property set to 0. Now, I’d love it if there were a way to control the value at Frame 0 (value of first keyframe) with a slider control, so the user can adjust the amount that the text is broken up, without having to actually edit keyframes directly.

    Another way to word this is… I’m looking for an expression to change a value of a property from sliderValue on Frame 0, to a value of 0 on Frame 1.

    I really appreciate any help you can offer!

    After Effects Templates – digital glitch effects, 80s VHS effects, old film effects, art effects, and more: https://CreationEffects.com

    Noel Powell replied 9 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 26, 2016 at 8:26 pm

    Something like this maybe:


    if (timeToFrames(time) > 0)
    0
    else
    effect("Slider Control")("Slider")

    Dan

  • Noel Powell

    September 26, 2016 at 8:34 pm

    I feel dumb… Of course, an if/else statement is the way to go! Thank so much, Dan.

    After Effects Templates – digital glitch effects, 80s VHS effects, old film effects, art effects, and more: https://CreationEffects.com

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