Hi,
I’m working on an music bar equaliser, the concept is the equalisers would go up and down randomly in a loop, but the catch is that the bars will have an image in them.
I can’t find a way to mask the image on the multiple bar graphs.
Looking at the concept, the easiest route might be to animate the negative space instead of the image itself -- cover up the image with white bars on top. But if you have a background that won't work.
Otherwise, you could use the technique described here:
(I'd recommend splitting up the image in this case so there's not a ton of redundant images that are mostly masked out).
To add to @jonathan 's suggestion this mainly animates the top border to become the changing opaque area.
Here I use two rects, They move up and down with the top ones border increasing and decreasing.
They are in asymbol which is then duplicated, Each then has a Main Scene Main Timeline Action to go to a specific time and continue. They then continue in a loop.
Hi, Thank you Jonathan and MarkHunte for your quick replies.
I cannot animate the negative space since we’ll be using images over there, the top has to stay transparent.
What I did is I cut the whole image into 31 parts, each the perfect size of my bar.
The another problem that arised was the motion of the bars. Since Hype animates position from the top and left only, I found a hard time animating the height and keeping the top value constant. So I flipped the whole thing 180° and had to redo the whole animation. It’s till WIP, but I’m happy with how its going now.
Hope I was be able to explain the whole thing properly.
Hi Guys, so a final update,
We did get the whole thing right, sent it to the client and he din’t like it much. He wanted the small rectangles on the top which would fall and rise with the equaliser bars.
Getting that done on Hype would have been a nightmare.
So we downloaded an After Effects plugin called “BodyMovin” which exports AE animations to HTML5. The plugin made it super simple.
Check out the animation (Still on staging) – arrived.alri.com
Masks are an essential part of an animation software and I hope that future versions of Hype will integrate them, just like Adobe Animate: https://www.youtube.com/watch?v=8GHoAFeTYQc.