Categories
AE

[익스프레션] 특정 문구 앞에 있는 문자 출력

특정 문구 앞에 있는 문자를 찾아서 출력하는 익스프레션

underbarText = thisComp.layer('underbarText').text.sourceText;
text.sourceText=thisComp.layer('Text').text.sourceText.split('\r').find(w => w.includes(underbarText))?.split(underbarText)[0];

Text레이어에 입력한 텍스트를 줄바꿈 기준으로 나누고, 그 중에서 underbarText를 포함한 줄을 찾은 다음, true면 underbarText를 기준으로 앞에 있는 텍스트를 출력함

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다