stamp info on frame

Moderators: Disciple, zlovatt

Post Reply
darkmoon3d
Posts: 6
Joined: July 13th, 2006, 5:40 pm

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?
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

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
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

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");
   }
darkmoon3d
Posts: 6
Joined: July 13th, 2006, 5:40 pm

Thanks! That helped alot. ;)
Post Reply