Highlighted

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

Explorer ,
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

Nevermind, I finally found it using numProperties:

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

 

TOPICS
Expressions

Views

50

Likes

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

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

Explorer ,
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

Nevermind, I finally found it using numProperties:

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

 

TOPICS
Expressions

Views

51

Likes

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
Jul 01, 2020 0
Explorer ,
Jul 01, 2020

Copy link to clipboard

Copied

Nevermind, I finally found it using numProperties:

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

 

Likes

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
Reply
Loading...
Jul 01, 2020 0