-
Tab delimited files to Comp Marker
Hey guys,
Attempting to create a script that grabs info from a Tab Delimited File and create comp markers.
I’ve got the bones of my script working, however I’m not sure how to select which “column” or “tab” of the delimited file to grab for info.
I need it to grab information from column 2, add it to a variable called TC, then grab information from column 4, and add it to a variable called comm.
And do this until end of file essentially.
My loop looks something like this:
var tc;
var comm;
while (!tdlFile.eof){
tc = tdlFile.readln(); // Not sure if this right to read tc? Column 2
comm = tdlFile.readIn(); // Not sure if this is right to read comment? Column 4
if (tc == "") tc = 1 ; // if tc is blank, then change tc to 1 second
myComp.markerProperty.setValueAtTime(tc, comm) // unsure if this is actually how to add a comp marker.
}Lead VFX and Motion Design at Tomorrowland NZ