this may be helpful, it’s an expression that changes your text layer based on layer markers – goes inside source text of a text layer.
txt = value;
n = 0;
if (thisComp.marker.numKeys > 0){
n = thisComp.marker.nearestKey(time).index;
if (thisComp.marker.key(n).time > time) n--;
if (n > 0) txt = thisComp.marker.key(n).comment;
}
txt
in this example, i’m referencing a layer called CASTER01 that has layer markers:
txt = value; n = 0;
if (thisComp.layer("CASTER01").marker.numKeys > 0){
n = thisComp.layer("CASTER01").marker.nearestKey(time).index;
if (thisComp.layer("CASTER01").marker.key(n).time >
time) n--;
if (n > 0) txt = thisComp.layer("CASTER01").marker.key(n).comment; }
txt