Forums › Adobe After Effects Expressions › Create responsive masks for multi lines text in After Effects
-
Create responsive masks for multi lines text in After Effects
-
Aurora Wang
January 8, 2023 at 6:25 pmHi, I would like to create responsive masks for each line of the text.
Here I refer to this video so I can create a responsive mask for one line text. (https://www.youtube.com/watch?v=Mhb1xy2GTD4&t=573s)
If I have a text with two or three lines, I want to set a separate mask for each line of text, how should the expression be written. I am thinking that sourceRectAt Time().height/textLines can be used. The key is that I don’t know the expression to get the number of text lines.
Here is what I wrote for the first line mask but it doesn’t work.
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.
-
Aurora Wang
January 8, 2023 at 6:28 pmActually, I figured out how to define how many lines of the text has. But you can see, masks are not that perfect.
-
Filip Vandueren
January 13, 2023 at 9:37 amYou can use this animation preset of mine to get subsourcerect (source rect of individual characters, words or lines of a textlayer):
demo (enable sound)
https://imgur.com/gallery/9oRKx7R
Log in to reply.