Text bouncy animation back and forth based on inPoint and outPoint and layer markers
I'm trying to create a text animation preset with parameters controlled by sliders, in order to improove our workflow (I've worked with tons of text animation presets, but I always have to reset keyframes and many other stuff so I decided to create my own, eventually!)
Basically, I add a Text Animator and put the script within an Expression Selector; the script takes some param values from the sliders attached to the layer (or a parent controller, if not NULL) and animate the characters with a bouncy animation effect.
From the controllers I can set randomness, character offset, character overlapping and bounce parameters.
The animation starts from the inPoint of the layer and ends at the time of a Layer Marker named "Animation IN".
The script is working ok so far, but I can't go any further.
I would like an expression which reverse animate the text, starting from another Layer Marker ("Animation OUT") and ending at the outPoint of the text layer.
The reverse animation should include the bouncy effect and revert the order of the characters.
Hope my question was clear enough, please tell me if there's something I missed.
I've written a shorter expression, just to get things more clear.
At this point, the expression animate the text in and out, based on two markers and in/out point:
- animation IN starts at inPoint, ends at first marker
- animation OUT starts at second marker, ends at outPoint
- if no marker is found, animation IN starts at inPoint and ends after 15 frames (set in espression) and animation OUT is not played
I would like to add the bouncy effect after the IN animation and before the OUT animation.
I know how to add it after the IN animation
But I cannot figure out how to manage the animation OUT bounce (this should be a reverse bounce).
Any help on this would be great!
In the end, I was able to finalize the script! I paste the script for any interested user.
- create a text layer
- add an animator
- remove the range selector
- add an expression selector
- paste the code below within the Amount property
The text is now animated (ENTER animation only)
IN/OUT POINTS AND MARKERS
The ENTER animation starts at INPOINT. With markers you can set the duration of animation and add an EXIT animation.
Add 1 marker
The ENTER animation starts at INPOINT and ends at marker time
Add 2 markers
The ENTER animation starts at INPOINT and ends at the first marker time
The EXIT animation starts at the second marker time and ends at OUTPOINT
Add whatever property you want to animate (position, scale, rotation and so on) and choose the selector base you like (characters, lines, words)
Parameters are set internally, but they can be linked to slider controls for ease of use.
duration (int, frames) the duration of text animation (total animation excluding bouncy effect)
overlap (int, frames) animation overlap among characters
rand (bool) if true characters are randomly animated
seed (float) random seed
offset (integer) character offset
amp (float) bounciness overshoot
freq bounciness frequency
decay bounciness decay
Hope you enjoy it!