
1. Re: After effects Sum Numbers & expressions
Mylenium Feb 5, 2017 7:14 AM (in response to Cameraman84)1 person found this helpfulNo requirement for any Numbers effect. Native text layers can happily accept all kinds of expressions in their source Text property and in case of an addition, it works just like in the real world: a+b=c. Conversely, converting to percentages would be merely another division and multiplication, though yopu would wire it through a linear() interpolator. Therefore you get:
a=15;
b=5;
c=a+b;
percent_a=linear(a,0,c,0,100);
percent_a=linear(b,0,c,0,100);
The same formulas could then be applied to the scale of a rectangle or a linear wipe effect to control the length of your bars. You really don't need much more than this trivial stuff. Of course you may want to link the inputs to sliders or the actual input text layers for easy changes.
Mylenium

2. Re: After effects Sum Numbers & expressions
Dave LaRonde Feb 5, 2017 11:53 AM (in response to Mylenium)...however, I reecommend that you avoid LARGE numbers. You would soon run out of room on the screen.

3. Re: After effects Sum Numbers & expressions
Cameraman84 Feb 6, 2017 3:15 AM (in response to Mylenium)thank you my friend for immediate response! But this works only if you change the value in expression. When I connect with text layer and change from there the value, display problem in expression . I want to change the value in first text layer, then in the second text layer and the third layer take the sum of this automatically...If in first text give the number 10, in second 20, should the third layer give the number 30 automatically... Thanks you again...John K.

4. Re: After effects Sum Numbers & expressions
Mylenium Feb 6, 2017 5:01 AM (in response to Cameraman84)1 person found this helpfulIn your code the reference merely points to the layer name. A correct notation would be
thisComp.layer("A").text.sourceText
Mylenium

5. Re: After effects Sum Numbers & expressions
Cameraman84 Feb 6, 2017 5:53 AM (in response to Mylenium) 
6. Re: After effects Sum Numbers & expressions
Mylenium Feb 6, 2017 6:50 AM (in response to Cameraman84)1 person found this helpfulYeah, sorry. AE treats them as strings. You neet to convert them to numbers again:
parseInt(thisComp.layer("A").text.sourceText)
Mylenium

7. Re: After effects Sum Numbers & expressions
Cameraman84 Feb 6, 2017 7:10 AM (in response to Mylenium)You are Master, Faster, Sweet Disaster!
Thanks my friend! You are welcome!