I have gone a bit further with this script and refined the Time Code button.
While at the same time answering an earlier question of how to you remove the black surrounding the text.
This version of the code:
- Creates an adjustment layer which is a black solid with the adjustment layer flag set to on
- Adds the Time Code effect
- Adds Knoll's free Unmult in this case the 64 bit version for CS5
I changed the name of my version from Unmult-64 to Unmult so it should work with the previous 32 bit version http://redgiantsoftware.stores.yahoo.net/unmult.html
- Calculates comp size so that the text is centred and aligned with the bottom of the comp
- Sets the colour of the text to bright lime green if you don't like that colour then remember to specify normalised RGB (a number between 0.0 and 1.0)
To apply you need to activate the comp in the timeline and click the button T CD.
By default and if you have the Unmult effect the type will be burned into the image without the back background.
If you want to have time code burned into black background then turn off the Unmult effect and turn of the adjustment layer switch in the timeline.
Replace the entire existing function with the following and you are ready to go.
if ((app.project.activeItem == null) || ((app.project.activeItem != null) && !(app.project.activeItem instanceof CompItem)))
var comp = app.project.activeItem;
var new_solid = comp.layers.addSolid([.0,.0,.0], "Time Code Layer", comp.width,comp.height,comp.pixelAspect,comp.duration); // add solid inÂ comp
var layerCollection = comp.selectedLayers;
tmcd.property("Text Position").setValue([frmW, frmH]);