-
change font color of individual words based on special character – captions
These 2 scripts (written by Dan) work for a basic text layer but when I try and apply it to my captions text layer which has layer markers (keyframes) to break the text into slides it's not working. Error is shown in image.
txt = thisComp.layer("Input Text").text.sourceText;
txt.replace(/[\[\]']+/g,'');txt = thisComp.layer("Input Text").text.sourceText;idx = textIndex - 1;
txt.split(" ")[idx].indexOf("[") == 0 ? 100 : 0