Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to control “0% ~ 100%” Using “Slider”

  • Yasush Azush

    April 11, 2012 at 5:35 pm

    Man! That works great.(without the double parentheses)

    It’s amazing to know how your brain understand things O-o

    Until I did not turn on the color layer I didn’t have a single hope that it’s going to work.

    Let me know how I can return back to the community.

    Thanks

  • Yasush Azush

    April 12, 2012 at 4:24 am

    Da,

    I try to add ( s.toFixed(2) + “%” ) or ( Math.round(s) + “%” ) to make the numbers round but gives me error.

    Any thoughts?

    Thanks

  • Dan Ebberts

    April 12, 2012 at 1:20 pm

    What’s the expression, and what’s the error message?

    If it’s the last one I posted, it would be:

    (v2 – v1).toFixed(2) + “%”

    or:

    Math.round(v2 – v1) + “%”

    Dan

  • Yasush Azush

    April 12, 2012 at 3:03 pm

    Here’s the error I get:
    https://imageshack.us/photo/my-images/851/errorhwx.jpg/

    I also did change s1 to v1, thought maybe it helps but didn’t.

    Thanks

    s1=comp(PieChart).layer(Settings).effect(Pie Chart Settings)(10).value;
    (v2-v1).toFixed(2)+%

  • Dan Ebberts

    April 12, 2012 at 3:11 pm

    If your variable name is “s1”, than you would have to do it like this:

    s1.toFixed(2)+ “%”

    Dan

  • Yasush Azush

    April 12, 2012 at 3:20 pm

    Just works great.
    Thanks Dan

  • Yasush Azush

    April 13, 2012 at 3:07 pm

    Hi Dan,

    Is there any way to keep each percentage value in the center of each generated piece?

    Thanks

Page 2 of 2

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