filename text
-
- 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.
- 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:
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:
-Lloyd
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();
-
- Posts: 6
- Joined: July 13th, 2006, 5:40 pm
Is it possible to get project name as expression rather than running script?
- lloydalvarez
- Enhancement master
- Posts: 460
- Joined: June 17th, 2004, 9:27 am
- Location: New York City, NY
- Contact:
nopedarkmoon3d wrote:Is it possible to get project name as expression rather than running script?