Suppose I've got 2 sequences, one named OUTER and one named INNER. Composition INNER is inside composition OUTER. INNER is shorter than OUTER and is placed in the middle of it's timeline. Inside INNER there is a text object which I want to display OUTER's current time - but I found out this is not so straightforward as I thought. My first idea was to create a solid namer TIMER inside OUTER and link the INNER's text object 'Source Text' to comp("OUTER").layer("TIMER").time and despite that this layer lasts from the beginning to the end of OUTER, the text shown from OUTER's perspective is always starting with 0.0 when INNER starts.

For the sake of clarity, here is the pic:illustration

Is there a proper way to get linked composition's current time?

  • What happens if you change the expression on the Inner text layer to comp("outer").time? – stib Feb 4 '16 at 5:40
  • nah, that doesn't work. The time property seems to belon to layers, not to comps. Weird. – stib Feb 4 '16 at 7:08

If you change the inner text layer's source text to this it will work:

thisCompLayer = comp("outer").layer(thisComp.name);    
thisCompLayer.time + thisCompLayer.startTime

You just offset the time to cope with the later start time.

Looks like when AE calculates values from another composition it just calculates them for the current comp's time. It makes sense, because there could be multiple copies, or no copies at all of the inner comp in the outer comp.

| improve this answer | |
  • It works! Thank you so much, it will make my day so much easier. – Martin Winged Feb 4 '16 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.