-
CSV with linebreaks for source text
Hi All,
I’m creating a template wherein a beginner user can import a csv to populate textboxes (and highlight certain words using the awesome expression in this post). But I’m now stuck at the csv part.
I’ve imported a csv with four columns: ID, Text, Highlights, and Visual
The text layer inside the composition will use the composition name to reference the desired row and set the sourceText using the following expression:
var compIndex = thisComp.name;
var textField = footage("TOVDataTest.csv").dataValue([1,compIndex]);
textField;
this works perfectly, until… I try to include line breaks in my csv file.
It’s essential that the user can control where line breaks are inserted.
When I use alt+enter to create line breaks in cells in my CSV (through excel), it throws in the row/column references off, and the compIndex starts returning data from other columns.
Any solutions/ideas would be really appreciated
Many thanks
Gary
