Page 1 of 1

filename text

Posted: July 13th, 2006, 5:50 pm
by darkmoon3d
I'm trying to figure out how to post a text stamp on rendered video which includes project file name.

Posted: July 25th, 2006, 2:55 pm
by lloydalvarez
I don't believe you can access the name of the project through expressions, just the name of the Comp, which you can get by adding this expression to Source Text:

Code: Select all

thisComp.name

You can access the project's name through scripting. This script will create a new text layer and make it the name of the project:

Code: Select all

	clearOutput();
	app.beginUndoGroup("Project Name Stamp");
	
	var myComp = app.project.activeItem;
   var myProj = app.project.file.name.replace(/%20/gi," ") ;

	myLayer = myComp.layers.addText(myProj);
	myLayer.position.setValue([20,20]);
			 	
			 		 	
	app.endUndoGroup();
-Lloyd

Posted: December 30th, 2006, 7:32 pm
by darkmoon3d
Is it possible to get project name as expression rather than running script?

Posted: December 30th, 2006, 9:46 pm
by lloydalvarez
darkmoon3d wrote:Is it possible to get project name as expression rather than running script?
nope