Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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

  • 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))

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