-
Opacity change with multiple layer markers
I want to trigger multiple (two in this case) opacity changes via layer markers on a single layer.
I used below to trigger one opacity change.
if (marker.numKeys > 0 && time >= marker.key(1).time){
thisComp.layer(“N_Op_text”).transform.opacity.valueAtTime(time-(marker.key(1).time));
}
else{value}The expression looking at a null layer with opacity change. “N_Op_text” makes the opacity go from 100 to 50%.
If I want to manipulate this exp so it would be able to trigger another opacity animation (eg. it will look at a different null layer named “N_Op_out” that makes the layer go from whatever current value is to zero), how would I do that?THANKS
if (marker.numKeys > 0 && time >= marker.key(1).time){
thisComp.layer("N_Op_text").transform.opacity.valueAtTime(time-(marker.key(1).time));
}
else{value}