Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get the the column name (Header) of a CSV file

  • Get the the column name (Header) of a CSV file

    Posted by Frederic Antoinette on April 12, 2024 at 5:43 am

    Hi, I’m trying to access the column name of a csv.
    I have access to all the values but I can’t find a way to get the column name.
    When I pickwhip a sourcetext to a value in the csv I have something like that

    thisComp.layer(“data.csv”)(“Data”)(“Outline”)(“Labels”)(“Labels 0”)

    What I am looking for is to be able to get the string “Labels” in my source text.

    Thank you

    Frederic Antoinette replied 2 years, 1 month ago 1 Member · 1 Reply
  • 1 Reply
  • Frederic Antoinette

    April 12, 2024 at 5:58 am

    After typing my question I got the answer;
    So if someone is looking through it here it is
    I used this:

    thisComp.layer(“data.csv”)(“Data”)(“Outline”)(idx)

    where idx is the column number starting from 1

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