I just started to work with expressions and now have two questions:
I'm working on a project with time lapse images. Every image is named with date and time. I want the date of the image being displayed.
The images are in several compositions.
I was successful in reading and displaying the filename within the composition with:
text.sourceText=thisComp.layer(1).source.name
I also can imagine something like
with (i=1; i<=thisComp.numLayers; i++) {
text.sourceText=thisComp.layer(1).source.name
}
But I have to do it for every composition. Is there an easier way?
Something globally like:
text.sourceText=masterComp.imageBeingDisplayed.name
Second question:
When the project has been finished I would like to have a precise list of all images being used, duration transition... for a visulization:
Image Duration Transition
20060914.jpg 10 frames 4frames
20060915.jpg 10 frames ............
I can imagine that it is possible but I expect something difficult. Before I start working on that I just would like to know if it is possible. It would be great to get some considerations about conceivable solutions.
Best regards
Martin
display filname of source-footage & timeline sourcelist
- lloydalvarez
- Enhancement master
- Posts: 460
- Joined: June 17th, 2004, 9:27 am
- Location: New York City, NY
- Contact:
expressions are not global. You'll have to do in on a comp per comp basis, but you can write a simple script to do this for you.Sikkerhet wrote: I was successful in reading and displaying the filename within the composition with:
text.sourceText=thisComp.layer(1).source.name
I also can imagine something like
with (i=1; i<=thisComp.numLayers; i++) {
text.sourceText=thisComp.layer(1).source.name
}
But I have to do it for every composition. Is there an easier way?
Something globally like:
text.sourceText=masterComp.imageBeingDisplayed.name
-lloyd