Are you an After Effects nerd? Do you often work in large projects and constantly have issues with audio not lining up after timing adjustments? Then look no further! Behold: an After Effects tutorial using expressions to synch-up audio across different pre-comps.
Behold; the code of a thousand truths:
compStartTimeInParent = comp("_________").layer(thisComp.name).startTime; audioStartTimeInParent = comp("_________").layer(thisLayer.name).startTime; fullStartTime = this.startTime; fullEndTime = this.source.duration+startTime; linear(time, fullStartTime, fullEndTime, fullStartTime+compStartTimeInParent-audioStartTimeInParent, fullEndTime+compStartTimeInParent-audioStartTimeInParent)