ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How turn specific data from .csv file into sourceText property?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mikael Holmström
How turn specific data from .csv file into sourceText property?
on Feb 26, 2019 at 2:23:24 pm

Hi,

I'm trying to understand the data-driven animation feature in After Effects. More specifically, how to parse the .csv format (easily exported from Numbers or Excel) and convert it's data to, let's say the sourceText property of a text layer.

This is how my "test.csv" file, that is imported to my project and comp, reads when exported from Numbers:

;
wind;10
temperature;12

Can someone please help me with an expression that turns the sourceText of a text layer into the value of "wind"?

Thanks,
Mikael


Return to posts index

Oleg Pirogov
Re: How turn specific data from .csv file into sourceText property?
on Mar 1, 2019 at 7:38:05 am

CSV is auto-parsed from something like this:
words, numbers
wind, 10
temperature, 12


to this:


And "value of wind" is obtained through the following expression for sourceText:
thisComp.layer("testCsv.csv")("Data")("Outline")(" numbers")(" numbers 0")

Not quite understand what went wrong in your case,= as well as why are there semi-=colons in your comma-separated file.


Return to posts index

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