Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time Remapped preComp using parentComp time

  • Time Remapped preComp using parentComp time

    Posted by Ilya Gusinski on December 2, 2020 at 1:47 am

    So here’s my conundrum… I have a precomp with several audio layers and an animation, and I would like to control it in the parentComp using markers, and have the ability to mute/unmute the audio layers based on the marker.comment in the parentComp.

    As the audio or audio effects don’t work with masterProperties, I can’t go that route, so I have been trying to figure out a way to make an expression on each audio layer the preComp that will tell it to mute/unmute based on the markers in the parentComp.

    The main issue that I ran into is that I can’t figure out how to address parentComp.time in the precomp… every time the timeremap is triggered by a marker it restarts the precomp from the beginning…

    valueAtTime addressing the parentComp only addresses it based on precomp timeline… and restarts from “0” every time a marker is used.

    for example: I can access the marker.key(1).time of any marker in the parentComp from within the precomp, but I can’t figure out how to write an expression that will change (1) based on time, or iterate it somehow else… since the time remap screws it all up…

    I am starting to think that it is not something that can be done… or am I missing something?

    any thoughts, suggestions, ideas will be very much appreciated…

    Trent Armstrong replied 5 years, 5 months ago 3 Members · 3 Replies
  • 3 Replies
  • Stephen Dixon

    December 2, 2020 at 6:07 am

    The time variable in the precomp is equal to the time that the playhead from the parent comp is at, relative to the precomp. So if the main comp contains the precomp starting at 2:00 the value of the time variable for the precomp at the beginning of the parent comp is -2.

    To access the parent comp’s time we need to add the precomp’s in-point offset, thus:

    time + comp("parent comp name").layer(thisComp.name).inPoint;
  • Ilya Gusinski

    December 2, 2020 at 2:49 pm

    Hi, thanks for the suggestion!

    However, this will not work for my setup… the precomp is time remapped and is the full duration of the parent comp – this is so I can trigger the precomp to run from start to end using markers placed on the precomp layer in the parent comp.. so that the inPoint property would be “0”

  • Trent Armstrong

    December 3, 2020 at 2:01 pm

    Until we solve the expression problem, would you be able to actually make your precomp the same length as the parent comp? That way the timing would work out between them.

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