Thanks Dan,
Will dive into it right away. One more question though. I need to add markers to several layers plus the comp itself. Do you know how to select layers by name in the JSX script.
Bit of background info on this specific question: I have a textfile containing a JavaScript object consisting of titles and normal text. I’d like to be able to load this text instead of copying all data manually.
The text file looks as follows:
var mainData = {
"titles" : {
"0;00;05;00" : "Title one",
"0;00;10;00" : "Title two",
"0;00;15;00" : "Title three",
}
"text" : {
{
"inpoint" : "0;00;06;00",
"outpoint" : "0;00;09;00",
"bullets" : {
"0;00;06;00" : "Bullet number one",
"0;00;07;00" : "Bullet number two",
"0;00;08;00" : "Bullet number three",
}
},
{
"inpoint" : "0;00;11;00",
"outpoint" : "0;00;14;00",
"bullets" : {
"0;00;11;00" : "Bullet number one",
"0;00;12;00" : "Bullet number two",
"0;00;13;00" : "Bullet number three",
}
},
}
}
In the object above, markers for the titles section need to be added to say layer(‘title’) where the timecode is the key. The “text” section first needs to add two markers to the comp, triggering an animation, at the in and outpoint. Next the “bullets” need to be added at the corresponding times to the layer(‘bullets’) where the timecode is the key again.
Any clue on how to achieve this?
Thanks again!