Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Running number counter attached to a slider

  • Running number counter attached to a slider

    Posted by Christian Simpson on February 26, 2018 at 10:07 pm

    Hello all I was wondering if anyone knows of a way to make a running number counter work with a slider? I would like for the minimum number to be 0 and the maximum number to be 999,999,999. The desire is to keyframe it to whatever I want at whatever rate of speed I would like.

    Thanks

    Christian Simpson replied 8 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Declan Smith

    February 26, 2018 at 11:39 pm

    A couple of approaches, depending on what you are trying to achieve.

    1. Create a text object and add a slider
    2. Use the following expression on the text which will scale the default 0-100 on the slider to 0-999999999
    effect(“Slider Control”)(“Slider”)*999999999/100

    Sliders have a limit of 1000000 as their top value I believe, so another approach isto use a point control as the source which has a higher a limit and link to just the x value for example, then use an expression such as below and keyframe the point control

    value = effect("Point Control")("Point")[0]
    if (value < 0) {
    value = 0;
    }
    if (value > 999999999) {
    value = 999999999;
    }

    Declan Smith
    https://www.madpanic.tv
    FCPX / Adobe CS6/ FCS3 / Canon XLH1 / Canon 7D / Reason / Cubase

    \”it\’s either binary or it\’s not\”

  • Christian Simpson

    February 26, 2018 at 11:42 pm

    Thanks that works great!

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