-
Playing (and Replaying) A Precomp At Specified Timestamps
Hey there, folks!
I’m working on a dynamically updating typewriter animation, and my (lack of) skill with expressions has put me in something of a pickle.
Basically, I have an invisible layer that serves to create and maintain an array. Said array includes letters to be “typed” and timestamps for when that “typing” should happen. A visible layer (comprising only text) parses that array and reveals said letters at their associated times. That part works more or less perfectly.
What I’d like to do is have a third layer play a three-frame-long animation at each associated timestamp (with one caveat). For example, if the entries in my array are as follows…
T / 0.14
h / 0.24
i / 0.35
s / 0.45
/ 0.53
i / 0.64
s / 0.76
/ 0.95
i / 1.05
t / 1.12… then the aforementioned animation should play at 0.14, 0.24, 0.35, and so on.
The caveat is that I’d like a different animation to play if the associated character is a space. Once I’ve managed to get the primary animation to work, that shouldn’t be too difficult… but that primary animation is what’s giving me trouble at the moment.
Said animation – which is precomposed – is really just three frames and an audio file followed by a still image (which is in place to ensure that an “at rest” look is achieved), so it can replay from its starting frame whenever necessary. The issue is actually getting it to do that.
Any insight would be very much appreciated!
(Also, if there’s a better way to achieve the intended result, I’m not averse to starting from scratch!)