Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects CSV Data Driven Expressions Overtime

  • CSV Data Driven Expressions Overtime

    Posted by Simon Allmark on March 19, 2019 at 6:09 pm

    Hi, I’m a bit stuck and need your help clever people.

    I’m trying to use an expression to show data from a CSV file.
    essentially linking the data values of a graph as text as a line scrolls across the graph.

    Ideally, I need the individual parameters data changing every frame.
    I have imported the CSV and can get this expression to show me the individual parameters if I manually edit the dataValue but I can’t seem to work out how I can get it to pull the different data every frame when I play the timeline.

    footage(“Dinjector out0001 DATA001.csv”).dataValue([1,1])

    I’ve tried linking it to a slider that numbers up each frame but no luck and this is a bit more complicated than my knowledge of expressions currently stretches too.

    Any ideas on how to do this would be much appreciated.

    thanks
    Simon

    Simon Allmark replied 7 years, 6 months ago 3 Members · 4 Replies
  • 4 Replies
  • Michael Szalapski

    March 19, 2019 at 10:49 pm

    Does putting time into your expression help? That’s how I’d count up each frame.

    – The Great Szalam
    (The \’Great\’ stands for \’Not So Great, in fact, Extremely Humble\’)

    No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.

  • Simon Allmark

    March 20, 2019 at 8:23 am

    Hi Thanks for the suggestion, I tried to use time but I couldn’t get it to work, possibly just a syntax error but no luck so far.

    I also tried to use a slider to control the Column and Row and the Row counting up but again it’s not working, it could be a simple error in my code,

    X = thisComp.layer(“Expression”).effect(“Time”)(“Slider”)
    Y = thisComp.layer(“Expression”).effect(“Time 2”)(“Slider”)
    Value = footage(“Dinjector out0001 DATA001.csv”).dataValue([X,Y])

    my hunt continues!

  • Walter Soyka

    March 20, 2019 at 2:51 pm

    If you want a new value each frame, try something like this:

    footage("Dinjector out0001 DATA001.csv").dataValue([1, timeToFrames(time)+1])

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Simon Allmark

    March 22, 2019 at 8:53 am

    That’s exactly what I needed, works great.

    Thanks for your help

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