익스프레션으로 특정 문자열이 끝나는 위치를 indexOf와 시작점으로 찾음
a=thisLayer.text.animator("Animator 1").selector("Range Selector 1").start;
t=thisComp.layer("searchText").text.sourceText.length;
n=thisLayer.text.sourceText;
m=n.indexOf(thisComp.layer("searchText").text.sourceText);
k=a+t;
if (m == -1) {
[0]
} else {
[k]
}
이 레이어의 텍스트 중에서 searchText의 텍스트와 일치하는텍스트의 시작점을 찾은값을 a로 두고, searchText 레이어의 길이(length)를 찾아 특정 문자열이 끝나는 위치를 값으로 찾음
만약 searchText와 완벽하게 일치하는 텍스트가 없으면 0을 출력하도록 if~else로 분기