Graphics

 View Only
Expand all | Collapse all

Animating Bar Graphs that are datalinqed

Nikki Caudle

Nikki Caudle03-08-2016 17:41

Mark Blank

Mark Blank09-13-2016 00:11

  • 1.  Animating Bar Graphs that are datalinqed

    Posted 09-18-2014 19:24
    Hello,

    I have a scene that has a bar graph that is pulling data from an xml file (which is "Live Updating"). I have a basic script that can adjust the bars height by using the data from the xml file, but the bars "pop" or "cut" to the new height as the data is updated. I would like to be able to have the bars "GROW" and/or "SHRINK" when the new data comes in.

    Hope this makes sense. Has anyone accomplished "Growing/Shrinking" Bar Graphs (that pull data from datalinq) in xpression?

    Thanks


  • 2.  RE: Animating Bar Graphs that are datalinqed

    Posted 09-19-2014 13:08
    I have an idea that might help you get started.

    -Create a new text object called 'previousValue'. Load the current bar height into previousValue as the scene loads.

    -Create a loop in your animation controller by placing an event that jumps back just a few frames.

    -Place a script in the middle of the loop.

    -The script should get the height of the bar from the previous value, not the current value.

    -Increase/decrease previousValue by 1 if the current value and previous value differ.

    #XPression


  • 3.  RE: Animating Bar Graphs that are datalinqed

    Posted 09-19-2014 21:14
    I have the same problem.

    Can we do this without script?

    If we do this with Visual logic,

    How it should be like?

    thanx.

    #XPression


  • 4.  RE: Animating Bar Graphs that are datalinqed

    Posted 09-20-2014 09:42
    Personally, I would have made a script that would modify a keyframe on an animcontroller and then played this animcontroller when the value changes.

    #XPression


  • 5.  RE: Animating Bar Graphs that are datalinqed

    Posted 09-22-2014 14:32
    Vincent,

    Good idea.. I tried your idea and it works well for me.. Here is my sample project if anyone else wants to look at it.

    http://ross.brickftp.com/f/bc18e5996

    Brian

    #XPression


  • 6.  RE: Animating Bar Graphs that are datalinqed

    Posted 09-22-2014 18:59
    Thanks Vincent. Brian thanks for the sample project, worked perfectly. Thanks guys!

    #XPression


  • 7.  RE: Animating Bar Graphs that are datalinqed

    Posted 10-02-2014 20:50
    Brian, will you please repost the sample? I need to do a similar changing animation, but my loop happens so fast, I only see the final state, and not any changes during the loop.

    Is there a way to run one iteration of the loop, and then update the scene, and then run the next iteration, etc...?

    Shane

    #XPression


  • 8.  RE: Animating Bar Graphs that are datalinqed

    Posted 10-03-2014 12:25


  • 9.  RE: Animating Bar Graphs that are datalinqed

    Posted 12-12-2014 17:13
    Hi Brian,

    That link says the file is no longer available, do you still have it? I'd like to take a look at it as well. Thanks!

    #XPression


  • 10.  RE: Animating Bar Graphs that are datalinqed

    Posted 12-13-2014 22:18


  • 11.  RE: Animating Bar Graphs that are datalinqed

    Posted 03-02-2016 22:44
    Hi Brian,
    Do you still have a link to the file? I'd like to take a look at it as well. Thanks!
    #XPression


  • 12.  RE: Animating Bar Graphs that are datalinqed

    Posted 03-03-2016 00:51


  • 13.  RE: Animating Bar Graphs that are datalinqed

    Posted 03-08-2016 17:41
    Thank you!
    #XPression


  • 14.  RE: Animating Bar Graphs that are datalinqed

    Posted 09-12-2016 03:33
    Hi Brian, sorry - would you mind re uploading please? Would love to have a look. Thanks.
    #XPression


  • 15.  RE: Animating Bar Graphs that are datalinqed

    Posted 09-13-2016 00:11
    Thanks so much!
    #XPression


  • 16.  RE: Animating Bar Graphs that are datalinqed

    Posted 23 days ago
      |   view attached

    Hi Steve.
    Try the attached project



    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------

    Attachment(s)

    xpp
    BarGraphs.xpp   157 KB 1 version


  • 17.  RE: Animating Bar Graphs that are datalinqed

    Posted 23 days ago
      |   view attached

    And in this attached project, scenes are made in two different ways.

    One scene is made using the OnRender engine script, the other using Visual Logic



    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------

    Attachment(s)

    xpp
    BarGraphs.xpp   164 KB 1 version


  • 18.  RE: Animating Bar Graphs that are datalinqed

    Posted 21 days ago

    And the original project from 2014 as well: Animated Bar Graph Example.zip