Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Displaying source timecode of another layer?

  • Displaying source timecode of another layer?

  • Navarro Parker

    October 16, 2015 at 5:43 pm

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

  • Dan Ebberts

    October 16, 2015 at 6:28 pm

    Try this:

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

    Dan

  • Navarro Parker

    October 16, 2015 at 7:16 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());
    }
    }

  • Grant Van Zutphen

    May 19, 2021 at 1:20 am

    All you need to do is change timeToTimecode to timeToCurrentFormat, like this:

    L = thisComp.layer(“your layer”);
    timeToCurrentFormat(L.sourceTime(time))

Viewing 1 - 4 of 4 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy