Graphics

 View Only
  • 1.  Animate Text Count Up from 1 to Template Link Input

    Posted 01-31-2020 20:21

    Hello, I have a polling percentage graphic I'd like to have count up from 1 to whatever percentage we input or datalinq input, like say 35%. I'd like the text to come on then count up from 1 to 35 let's say, and control how fast or slow it counts up.

    I see a lot of posts about getting text to count up from one value to another, but no one has an easy way to crack it yet without using some scripts. I don't know how to script so was hoping to find a way to do this using visual logic, perhaps some combination of VL with keyframed or stagger animations.

    Any ideas would be much appreciated. Thanks!



  • 2.  RE: Animate Text Count Up from 1 to Template Link Input

    Posted 02-04-2020 21:58

    Following this one.

    I have yet to crack this one myself.
    I can somehow create it through Dashboard and DataLinq, but having it work in XPression alone would be much better.


    #XPression


  • 3.  RE: Animate Text Count Up from 1 to Template Link Input

    Posted 02-06-2020 12:56

    Hejsan Aleksander

    An easy way to make a text counter, is by animating an EventMarker from pos 0 to XX

    In the animation you can use interpolation to control the speed Marker=Speed of the counter

     

    Then feed the pos of the EventMarker into textobj in VL

    But I dont know if you can control the end pos of the Marker, from datalink (without a script)

    Best regards,

    Sven

     


    #XPression


  • 4.  RE: Animate Text Count Up from 1 to Template Link Input

    Posted 02-06-2020 14:21

    And suddenly everything fell into place...
    Thanks <x-zendesk-user data-user-name="Sven Bergur Jensen">372625463852</x-zendesk-user>, that little input put me on the right track for this one, and here we go...

    https://drive.google.com/file/d/1lkNV6TUL5UTRDzthsGJKWhOo0zwGkXYo/view?usp=sharing

    Basically, the target % value is stored in the text field in the top left.
    While the visual logic takes the target, divide by 100 to get the 1... Take the value of 1, multiply that with the X position (can be y for that matter) of the little quad. Start the quad at x-position 0, animate it over to 100, and round the output from the multiplier, concatenate with a %, and you got the % value animating in... You can also change the target % in the top left to whatever you'd like, and it will still work just fine.

    Then you can use the Xpression U tutorial on bars and pie charts in order to get a result with a counting %, animating on top of a bar growing from 0 to a max height set in Visual Logic.
    (For those who download the package, you can see the animation example in the animation controller called "rising percentage").

    Have fun folks!


    #XPression