Page 1 of 1

add solid to project

Posted: January 26th, 2006, 10:18 am
by pirelouit
Hi! I made a script that makes a comp with selected footage and adds a timecode. The problem is that it creates a new solid every time.

Is there a way to add a timecode without a solid or to have the script create a solid in the project and then add the same solid to every comp it makes?

Thanks

Posted: January 26th, 2006, 11:07 am
by pirelouit
I realized the reason why what I was trying to do was not working was because I was using 'mainSource' instead of 'source'...

Code: Select all

var timecodeSolid = myComp.layers.addSolid(compBG, "timecodeSolid", 150, 35, compRatio, curDuration);
var timeCode = myComp.layers.add(timecodeSolid.source);