Hey everyone.I'm new to framer. I have one question (I don't have a programming background): Why is there a need to set the layer when I define an animation? Why can't I reuse the same animation with a different layer?
Hey José, you don't necessarily have to. One thing you could do is wrap an animation within a function, and passing the layer definition as a variable.
Or, even shorter:
Oh, thats great! thanks Benjamin
Bas well, the reverse function can only be used on an animation. So you need to use a variable that stores an animation. You could write "animation = layer.animate." and then later define a new variable that reverses the animation. For instance:
If I remember correctly, you can declareanim = new animationHowever I cannot check the docs or source right now