-
Fade up and Fade down at markers
Hi guys
I have an expression that i do not know how to change to get the effect that i am after. What i would like is to fade a layer up over 3 frames at a layer marker, and then an the next layer marker fade it down over 2 frames. And this could continue on for each layer marker their after.
The expression i have just turns the opacity on and off at each layer marker.
Thanks alot
Chris
if (marker.numKeys) {
// what's the nearest marker ?
nearest_marker=marker.nearestKey(time)// if the nearestKey lies in the future,
// subtract 1 to get the index of the 'current' keycurrent_marker_index = 1 + nearest_marker.index - (nearest_marker.time > time);
// convert our running marker index to
(current_marker_index%2)*100} else {
// degrade nicely if there are no markers:
value;
}