-
Trigger sound effects
Hi. I found an expression in one of the Dan posts and it works perfectly if I use the sound layer marks. But I don’t know how to make it work with the “PLAY” layer marks.
Thank you in advance.
len = thisLayer.source.duration;
if(marker.numKeys > 0){
m = marker.nearestKey(time).index;
if(marker.key(m).time > time) m--;
if(m > 0){
mt = marker.key(m).time;
if(time < mt+len){
linear(time, mt, mt+len, 0, len);
}else 0
}else 0
} else value;
