>Once the pre-comped voice over track ends…
How will the expression know this has happened?
Maybe something related to this?
layerDuration = outPoint – inPoint; but pointing to the voice over track if possible?…
Also, couldn’t the background expression just monitor the checkbox instead of the voice over audio level? It’s much easier to detect changes in keyframes than value levels.
Yes definitely, if it is easier for it to do..
So I’m thinking the best answer would be some kind of amalgamation of the following two expressions?
fadeTime = 30;
audio.audioLevelsMin = -40;
audio.audioLevelsMax = 0;
layerDuration = outPoint – inPoint;
singleFrame = thisComp.frameDuration;
animateIn = linear(time, inPoint, (inPoint + framesToTime(fadeTime)), audio.audioLevelsMin, audio.audioLevelsMax);
animateOut = linear(time, (outPoint – framesToTime(fadeTime+1)), (outPoint-singleFrame), audio.audioLevelsMax, audio.audioLevelsMin);
if(time < (layerDuration/2+inPoint)){
[animateIn,animateIn];
}else{
[animateOut,animateOut];
}
AND
if(comp(“Slide 1 Image or Video”).layer(“Scene 1: Video Audio – On/Off [Type: Dropdown, Options:{On| Off}, Linkto: Video, Required: No]”).effect(“On”)(“Checkbox”)==1){
[-90,-90];
} else {
[-12,-12];
}
Not sure if this would make sense..