sorry guys to bother, im just starting with this scripting. Ive used a code to generate dynamic text in a textfield on the stage, this gets filled by comment text of a marker. Im using this to add onscreen comments for the audio people without me having to keyframe everything.
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;
This is the code which grabbs the text from the comment section in a marker. When i combine this with the above for line breakes it stops working. Ive tried making a second variable and putting it below the loop, but didnt work