ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Select Specific word from a paragraph to another text layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Devendra Singh
Select Specific word from a paragraph to another text layer
on Jun 10, 2018 at 1:48:28 pm

I know it's sound confusing but let me explain it.

Basically what my goal is that I'm trying to make a template ( stomp opener ) and I want to allow the user to change all the text from one single layer.

I want to make serval text layer and then parent their source text to the changeable text so the all other text layers can have some part of the original text.

Please check this attachment so you understand better.

https://image.ibb.co/h5fUf8/cap.png

I'm looking for this for over some time, I know this is possible but don't find a way to do it.

Thanks


Return to posts index

Dan Ebberts
Re: Select Specific word from a paragraph to another text layer
on Jun 10, 2018 at 7:43:40 pm

The way you have it set up (with the master text layer being layer #1), something like this should work:


txt = thisComp.layer("your text layer").text.sourceText;
myIndex = index-2;
try{
txt.split(" ")[myIndex];
}catch(e){
""
}



Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]