Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Using Slider Control with Repeater on Shape Layer

  • Using Slider Control with Repeater on Shape Layer

    Posted by Jason Nelson on August 24, 2016 at 5:00 pm

    I have a circle shape layer. I added a repeater. I added a slider control to the Copies value, and edited the min and max values of the slider to 8 & 12. I want the slider to vascilate randomly between 8 and 12, but only want whole numbers. I’m currently getting decimals and it’s causing weird fading.

    The end result I’m going for is that the dots will appear randomly to emulate a volume LED meter, but I don’t want to use audio keyframes, I just want the dots to appear randomly between the values of 8 and 12.

    I hope I’m making sense. I’ve attached a screenshot of my work so far.

    Thanks.

    Jason Nelson replied 10 years ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    August 24, 2016 at 5:13 pm

    This should generate whole numbers between 8 and 12, but I suspect it’s not what you want (you didn’t mention anything about timing):

    Math.floor(random(8,13))

    Dan

  • Jason Nelson

    August 24, 2016 at 5:23 pm

    Thanks Dan. I tried adding that expression to the Slider Control before I posted my question, but when I played it back, it didn’t work.

    As for timing, my limited knowledge of expressions leads me to believe that adding a wiggle would work.

    So, basically, dots 8-12 would appear on and off like flashing to the beat of music…like an LED meter on a stereo.

    How far off am I from realizing this agenda?

  • Jason Nelson

    August 24, 2016 at 5:24 pm

    Okay, for some reason I shut down AE, restarted it, and now it works! NOW, is there any way to make them not be so spastic? 🙂

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