Skip to main content
Participant
October 5, 2021
Question

AE Expressions

  • October 5, 2021
  • 1 reply
  • 147 views

I am new to expressions but i need help with a double name super and its lines of text and background. 

 

I want the background to grown dynamically in height according to how many lines of text are put in (with some padding). the double name super always animates in the same point of time and has a trasition, so  this may also need to be catered for . I want both the first and second part of the name super to grow in height dynamiccaly , depeding on how many lines of text there is. 

 

I know there may be a few ways of doing this, using a null object , expressions on its anchor point but need some input on . The background is an image and there is max 3 lines of text for each part but i want the option to use just one to 3 lines, with some padding between the text and background images

This topic has been closed for replies.

1 reply

Mylenium
Legend
October 5, 2021

Not sure what you need. There's litterally hundreds of tutorials out there that illustrate the use of sourceRectAtTime() and sampleImage(), including also ones that use valueAtTime() to retime pre-existing animations, so the question would have to be whether you actually looked any of them up?! The rest is a matter of "Show us what you have (or which tutorial you like best)!" and then we can advise on what you may need to modify, but honestly it seems you are overthinking and overcomplicating this. At the end of the day just setting up the three lines of text separately in your MOGRT/ Essential Graphics and using protected time regions along with basic sourceRectAtTime() may work just as well. I generally feel that people are always trying to over-optimize these multi-line things and then only get themselves in trouble with convoluted "smart" setups that may not behave correctly later.

 

Mylenium

KJAEAuthor
Participant
October 5, 2021

Hi, I need an expression that will enable a dynamic background in height , depending on number of lines in the data provided as explained above. its actually based on a current project that I have to work with.  

 

You are right , There are hundreds of tutoruials out there, and yes I have looked at some but thought it would good to maybe narrrow that down and ask the adobe community being new to this after all and get some input  .