filename text

Moderators: Disciple, zlovatt

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

I'm trying to figure out how to post a text stamp on rendered video which includes project file name.
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

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

Is it possible to get project name as expression rather than running script?
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

darkmoon3d wrote:Is it possible to get project name as expression rather than running script?
nope
Post Reply