Expressions - Double name strap with with BG layer that follows the lines of text in height
I am new to expressions but i need help with a double name strap and its lines of text and background.
The strap is 14 seconds in duration and always animates to the second part at 7 seconds. I want the background to grown dynamically in height according to how many lines of text are put in with one or two lines of text in part one and part 2 (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 .
It is easy to accomplish if it was just one part. I have a shape layer (Boarder) which is the background image and 4 seperate lines of text .
I have the shape layer parented to a null object and currently have an expression in the nulls expression position. My problem is i want an expression if possible, to cater for the lines of text in part one, but the the background to move dynamically at 7 seconds depending on the lines of text put into part 2 . Part 2 is where im stuck.
I tried making a second null object and background layer but ideally i want it to work from the one background.
My script so far is
var message = comp("CTRL").layer("page").text.sourceText;
if (message == ""){
thisProperty = [0,0]
} else {
thisProperty = [0,-20]
}
