Issue with Font Style Change and Animation in After Effects Expressions
Hello everyone,
I'm encountering a problem in After Effects, and I'm hoping to get some assistance from the community. I have a composition where I want to preserve the animation of a text layer (LineOne) while ensuring that another text layer (LineOneUnderscore) always maintains the same style, including font size and font family, as LineOne.
I've written the following code in After Effects to achieve this:
The issue I'm facing is that when I execute the line lineOneUnderscore.text.style = lineOne.text.sourceText.style;, the animation in LineOne is lost. On the other hand, if I place this line (s + "_"😉 at the bottom of the code, the animation works fine, but then the style synchronization doesn't occur.
If anyone has encountered a similar problem or has expertise in After Effects scripting, I would greatly appreciate your help. How can I modify the code to ensure that LineOneUnderscore always has the same style as LineOne, while preserving the animation effect?
Thank you in advance for any assistance you can provide!
