Copy link to clipboard
Copied
There are 2 layers.One is text layer,one is sequence layer.
Footage has begun from the 20th frame.
Therefore, the number of composition's current frame number and footage's frame number has shifted.
I want to show footage's frame number in text layer . not composition's frame number.
How to get the footage's current frame number in expression?
Tatsuya
Copy link to clipboard
Copied
>Footage has begun from the 20th frame.
Do you mean that the footage layer has been trimmed (so that the start of the footage lines up with the start of the comp, but the first 19 frames are not visible), or moved to the left (so that frame 20 lines up with the comp's frame 0), or that the sequence actually begins with the 20th frame (at frame 0 of the comp), or something else?
Are the frame rates of the comp and the footage the same?
Dan
Copy link to clipboard
Copied
In this case,current frame of the comp is "0001",and the "layerA" layer refer to the 20th frame.
I want to show like "0020"(footage's frame number) in text layer.
Can you understand my explanation?
Copy link to clipboard
Copied
Like this, maybe?
s = "" + (timeToFrames() + 20);
while (s.length < 4) s = "0" + s;
s
Dan
Copy link to clipboard
Copied
No... Is the number of footage direct unacquirable?
Because the number of the head of footage is various.
It is made for Expression to want to be able to acquire the reference frame number of footage automatically.
Tatsuya
Find more inspiration, events, and resources on the new Adobe Community
Explore Now