-
Trigger opacity from another layer’s marker
Hi!
I’m trying to animate the opacity, triggered by another layer. So my layer should fade out when the time indicator hits “Bumper3″‘s marker. This is what I tried but I’ve made something wrong since this only works if I have the marker on the same layer.Help anyone?
/PontusL = thisComp.layer("Bumper3");
fadeFrames = 15; m = 0; t = time;
if(marker.numKeys > 0) {
m = L.marker.nearestKey(time).index;
tag = L.marker.key(m).comment;
if (tag== "In") { t = marker.key(m).time - time}
else if(tag=="Out") {t = time-marker.key(m).time}
linear(t, 0, framesToTime (fadeFrames), value, 0)
}
else {value}/Pontus