Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Connect numbers on top of both bars

  • Kevin Camp

    April 17, 2015 at 8:22 pm

    with the way you are set up, i would use a linear() function to interpolate between the wipe completion min/max and a y-position min/max.

    try this in the ‘numbers effect>fill and stroke>position property’:
    wipeVal = thisComp.layer("BAR GRAPH 1").effect("Linear Wipe")("Transition Completion");
    wipeMin = 0;
    wipeMax = 100;
    y1 = 850;
    y2 = 130;

    y = linear( 100-wipeVal, wipeMin, wipeMax, y1, y2 );

    [value[0], y]
    modify the y1 and y2 variables as needed to match the graph (i just estimated values).

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Igor Katrach

    April 20, 2015 at 9:37 pm

    Kevin, thank you very very much for your answer!!
    It works, thank you!! Now numbers moving up with the bars.
    Only few problems.

    1. Now numbers on the top of bar show wrong data – 46, but Value – 65
    It happens because in layer “GRAPH OPTIONS” in “Max Value” I put 140 (scale for all bars, because I have data 130, not 100). in layer “STATISTICS 1” “Value” – 65.
    So I need to get data from “STATISTICS 1” not percentage of bar size to show number on the top of bar.

    2 Red bar is second cluster from blue bar.
    in layer “STATISTICS 1” “Value” “Cluster 2 Value” 130 – its for red bar.

    3 It wold be nice to have horizontal position of numbers attached to “GRAPH OPTIONS” to “Bar Width”

    I hope it could works.

    Thank you again.

    Igor.

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