FORUMS: list search recent posts

CSV Data Driven Expressions Overtime

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Simon Allmark
CSV Data Driven Expressions Overtime
on Mar 19, 2019 at 6:09: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


Return to posts index

Michael Szalapski
Re: CSV Data Driven Expressions Overtime
on Mar 19, 2019 at 10:49:27 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.


Return to posts index

Simon Allmark
Re: CSV Data Driven Expressions Overtime
on Mar 20, 2019 at 8:23:15 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!


Return to posts index


Walter Soyka
Re: CSV Data Driven Expressions Overtime
on Mar 20, 2019 at 2:51:36 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Simon Allmark
Re: CSV Data Driven Expressions Overtime
on Mar 22, 2019 at 8:53:09 am

That's exactly what I needed, works great.

Thanks for your help


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]