-
Messaging Automation Question
Hi all – I’m trying to figure out how to automate text messaging animation flow. So, I have one long comp of the built out conversation made of ‘message’ comps inside of a ‘convo’ comp. What I’m trying to achieve is automation of the Y position moving up at every marker on the layer. My first attempt is trying to go into the convo comp, look at the first message comp’s height and move the Y position equal to that number.
It’s definitely not working, but it’s showing signs of being on the right track. It moves on the first marker, but once it gets closer to the second marker – it resets back to zero and moves again at the second marker.
Apologies for the longwinded post here – just want to make sure I’m providing as much context as possible. I also want to say that I’m a long time listener, first-time caller. I’ve been visiting creative cow for over nearly 15 years or so and I can’t tell you how many times this community and resource has helped me out.
A very warm thank you to everyone in advance.
m = marker;
n = 0;
moveTime = .2;
mNumber = m.numKeys;
innerMessageHeight = comp("Messages_Comp").layer(index+n).sourceRectAtTime().height+20;
moveAmt = innerMessageHeight;if (m.numKeys > 0){
n = m.nearestKey(time).index;
t = time - m.key(n).time;
if (time < m.key(n).time) n--; } value + [n*-ease(t,0,moveTime,0,moveAmt)]