Activity › Forums › Adobe After Effects Expressions › Expression to control “0% ~ 100%” Using “Slider”
-
Expression to control “0% ~ 100%” Using “Slider”
Yasush Azush replied 14 years, 1 month ago 2 Members · 17 Replies
-
Yasush Azush
April 11, 2012 at 5:35 pmMan! 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 amDa,
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 pmWhat’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 pmHere’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 pmIf your variable name is “s1”, than you would have to do it like this:
s1.toFixed(2)+ “%”
Dan
-
Yasush Azush
April 13, 2012 at 3:07 pmHi Dan,
Is there any way to keep each percentage value in the center of each generated piece?
Thanks
Reply to this Discussion! Login or Sign Up