Page 1 of 1
stamp info on frame
Posted: September 21st, 2006, 9:59 pm
by darkmoon3d
I'm trying to stamp info on frame. So far have date to side as well as timecode for clip information. How do I go about getting composition width, height, pixel aspect, and frame rate?
Also has anyone written or does a program exist for setting up stamp informatoin on screen with file or user infomation such as items mentioned above?
Posted: September 22nd, 2006, 10:14 am
by Dan Ebberts
Try applying this expression to the Source Text property of a text layer:
"comp width: " + thisComp.width + "\r" +
"comp height: " + thisComp.height + "\r" +
"pixel aspect: " + thisComp.pixelAspect + "\r" +
"frame rate: " + 1/thisComp.frameDuration;
It should give you some ideas.
Dan
Re: stamp info on frame
Posted: September 25th, 2006, 4:36 pm
by lloydalvarez
darkmoon3d wrote:
Also has anyone written or does a program exist for setting up stamp informatoin on screen with file or user infomation such as items mentioned above?
There's a few things you can't get with an expression, but can with a script.. like the project file name, the language, ae version, serial number, registered name and company.. here's a simple script that adds a text layer to the current comp with the registered user and project file name as well as the goodies that Dan mentioned.
-Lloyd
Code: Select all
clearOutput();
var selItems = app.project.selection;
if (selItems.length > 0){
app.beginUndoGroup("Project Info Stamp");
for (var a = 0; a < app.project.selection.length; ++a) {
var myComp = app.project.selection[a];
if (myComp instanceof CompItem){
var myProj = app.project.file;
var projName = myProj.name.replace(/%20/gi," ");
var regUser = app.registeredName;
var compHeight = myComp.height;
var compWidth = myComp.width;
var compPAR = myComp.pixelAspect;
var compFR = 1/myComp.frameDuration;
var todayDate = Date(0).split(" ");
var stamp = "Project Name: " + projName + "\r" +
"User Name: " + regUser + "\r" +
"Today's Date: " + todayDate[1] + " " + todayDate[2] + " " + todayDate[3] + "\r" +
"Comp Name: " + myComp.name + "\r" +
"Dimensions: " + compHeight + "x" + compWidth + "\r" +
"PAR & FPS: " + compPAR + ", " + compFR;
myLayer = myComp.layers.addText(stamp);
myLayer.position.setValue([20,20]);
app.endUndoGroup();
}else{
alert("Please select the Comp (or Comps) you'd like to stamp");
}
}
}else{
alert("Please select the Comp (or Comps) you'd like to stamp");
}
Posted: September 28th, 2006, 1:01 am
by darkmoon3d
Thanks! That helped alot.
