Hi guys and girls!
I have an animation in which a 50% opacity white shape layer acts as a highlighter for certain objects. These objects are all the same size, but they are scattered around the scene with different positions.
I need this "highlighter" to go back and forth these objects in a predetermined order. Now, I COULD animate the position of the highlighter by hand, and use toggle hold keyframes the layers in question. But let's say there are 50 objects that needs to be highlighted, and that my client will surely come back to change the order of the highlight. Would it be possible to set up the scene so that each objects (x,y) position is assigned to a whole number on a slider? So when I need object 1 highlighted I just move the slider to "1" and keyframe it, object 2 = 2 and so on...
I'm a complete beginner when it comes to expressions, and I hope you guys could help me out with this one
Is it possible? Sure, but keyframing a slider won't necessarily be more efficient than keyframing the position. You would have to stick with some rules like the layers having a shared name that can easily be filtered and then of course there could be limitations with regards to the animation timing. Also the anchor point of the target layers would matter, there could be additional offsets requiring layer space transforms and may require compensation and whatnot. Could be complicated. That aside, 50 objects really isn't that much. By the time you have written your post and read my reply, you could already have done it.
Hah! Point taken
However, I'm eager to learn So, hypothetically, how would one go about this?
For the sake of simplicity (and overlooking the complete overkill in question) let's assume there's only two simple squares, and a slider would animate the position of the highlight layer to toggle between the two square positions