FORUMS: list search recent posts

Displaying source timecode of another layer?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Navarro Parker
Displaying source timecode of another layer?
on Oct 16, 2015 at 5:43:13 pm

How can I display the source timecode for a layer (which is completely different from the comp timecode)?


Return to posts index

Dan Ebberts
Re: Displaying source timecode of another layer?
on Oct 16, 2015 at 6:28:01 pm

Try this:

L = thisComp.layer("your layer");
timeToTimecode(L.sourceTime(time))


Dan



Return to posts index

Navarro Parker
Re: Displaying source timecode of another layer?
on Oct 16, 2015 at 7:16:16 pm
Last Edited By Navarro Parker on Oct 16, 2015 at 8:24:37 pm

Thanks Dan. I tried it out, but it doesn't seem to be accurate. It's off a few frames.

I found this expression that is totally accurate, but I have no idea how it's working. What is it doing differently?

https://forums.creativecow.net/thread/2/1008244

for(i=2;i<=thisComp.numLayers;i++){
if(thisComp.layer(i).inPoint <= time && thisComp.layer(i).outPoint >= time){
text.sourceText = thisComp.layer(i).name +" -- "+ timeToCurrentFormat(thisComp.layer(i).sourceTime());
}
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]