• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Access number of columns (or data groups) in a csv?

Explorer ,
Jul 01, 2020 Jul 01, 2020

Copy link to clipboard

Copied

Anyone know how to access the total number of columns (or groups of data) in a csv? Ae provides easy access to the number of rows in the data of a csv using the following:
 

 

thisComp.layer("CSV Filename.csv")("Data")("Number of Rows");

 

However, I can't figure out how to pull the number of columns. It's for a template I'm creating for myself to make line charts easily, and column number changes from csv to csv.
 
In this example, the desired output of the expression would be 11.
numOfCols.JPG
TOPICS
Expressions

Views

532

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jul 01, 2020 Jul 01, 2020

Nevermind, I finally found it using numProperties:

thisComp.layer("CSV Filename.csv")("Data")("Outline").numProperties;

 

Votes

Translate

Translate
Explorer ,
Jul 01, 2020 Jul 01, 2020

Copy link to clipboard

Copied

LATEST

Nevermind, I finally found it using numProperties:

thisComp.layer("CSV Filename.csv")("Data")("Outline").numProperties;

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines