Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to excerpt timecode data of nested, time-remapped clip?

  • How to excerpt timecode data of nested, time-remapped clip?

    Posted by Kolja Van boekel on July 2, 2019 at 1:01 pm

    Hey there!

    I have a clip. That clip is time-remapped.
    This remapped clip is nested in a precomp.
    That precomp is put in my final comp and time-remapped again.

    Is there a possibility to get a CSV including the frames of my final comp and the timecode of my original clip?

    I came up with this expression that I put on a text layer, which makes sense in my mind, but it won’t output anything, not even an expression error.

    t = thisComp.layer("comp_containing_my_clip").source.layer("myclip.mp4").timeRemap;
    valueAtTime(t);

    What am I not seeing here?

    Kolja Van boekel replied 6 years, 10 months ago 2 Members · 4 Replies
  • 4 Replies
  • Miguel De mendoza

    July 2, 2019 at 7:02 pm

    Just remove from your code "valueAtTime(t)"

  • Kolja Van boekel

    July 2, 2019 at 9:28 pm

    By doing this I get the values of the nested, time-remapped clip, but not the time-code of the clip inside the time-remapped comp… You know what I mean?

  • Kolja Van boekel

    July 4, 2019 at 12:41 pm

    I tried to make a graphic, I don’t know if my former explanation was sufficient…

    I am trying to get the timestamp of my clip after time-remapping it twice.

    With the code that I posted earlier I only get the timestamp that it has in Comp A, but not the one in the topmost layer, Comp B.

    I don’t get why my valueAtTime() doesn’t make any difference!
    Can somebody point me in the right direction?

  • Kolja Van boekel

    July 4, 2019 at 4:09 pm

    Whoever comes here to find an answer: I just found it.

    a=thisComp.layer("comp_containing_my_clip").timeRemap;
    a2=thisComp.layer("comp_containing_my_clip").source.layer("myclip.mp4").timeRemap.valueAtTime(a);

    //give out seconds
    timeToTimecode(t = a2, timecodeBase = 60, isDuration = false);

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