ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Display CSV group name as sourceText?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andrew Marston
Display CSV group name as sourceText?
on Jun 29, 2020 at 9:27:30 pm

I'm trying to display the name of a csv column as text by using expressions to link to the data's group name, but can't seem to get it. I thought the expression should be as follows, but it returns an error which reads "Static data node not found at input path. Found node type: Group data node." Any ideas?
footage("Weight2020 3 People.csv").dataValue([1])

I can display the actual cell data (in this case numbers) using the following expression, but not the name of the array which I'll use to create a label for a graph.
footage("Weight2020 3 People.csv").dataValue([1,0])


Return to posts index

Filip Vandueren
Re: Display CSV group name as sourceText?
on Jun 29, 2020 at 10:00:11 pm

I don't think you can extract them from the footage.
However, if you add that csv-footage to your comp as a layer, you can get to it like this:

thisComp.layer("data.csv")("Data")("Outline")(1).name

note that (1) will give you the first column name, it is not 0-indexed.



Return to posts index

Andrew Marston
Re: Display CSV group name as sourceText?
on Jun 29, 2020 at 11:34:35 pm

Thanks so much!


Return to posts index

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