Activity › Forums › Adobe After Effects › Looking for a most effective way to do movement after the elipse
-
Looking for a most effective way to do movement after the elipse
Posted by Jaroslaw Kaminski on October 31, 2018 at 10:17 amI’m doing brush cleaning animation, and really need to find a way to automate the moment when toothbush is doing round moves while ceaning teeths. I assume that they need to be more eliptical than round ones. Is there any way to make such a loop, and kind of to be comfortable to work with, allowing changing it posiition a little, so the movement wouldn’t be boring and repeatable?
Jaroslaw Kaminski replied 7 years, 8 months ago 3 Members · 13 Replies -
13 Replies
-
Kalleheikki Kannisto
October 31, 2018 at 2:39 pmTwo nulls, Null 1 to control the center of rotation and overall placement of brush, Null 2 for the rotating motion.
Null 2 position expression
thisComp.layer("Null 1").transform.position+[200*Math.cos(time*5), 100*Math.sin(time*5)]Parent the brush to null 2. Adjust values for your needs.
You can add a wiggle to the position of Null 1 to give it some variation.
Kalleheikki Kannisto
Senior Graphic Designer -
Jaroslaw Kaminski
November 4, 2018 at 6:12 pmHow to add this expresion to a null? Animation->Add expression is inactive
-
Steve Bentley
November 5, 2018 at 1:25 amYou have to pick the attribute within the null and add the expression to that (in this case “position”) just select the layer and hit the p button.
-
Jaroslaw Kaminski
November 5, 2018 at 11:19 amHmm, one more thing. Parented to null, toothbrush layer doesn’t move while Null is doing circles. I’m aware that it could be impossible to say what’s causing my problem, but is it available to determine what could cause an issue?
-
Jaroslaw Kaminski
November 7, 2018 at 1:36 pmWhat do you mean by “adding a wiggle” ? How do you picturing that?
-
Kalleheikki Kannisto
November 7, 2018 at 3:37 pmSee the attached dummy project.
12867_rotatingtoothbrush.aep.zip
Kalleheikki Kannisto
Senior Graphic Designer -
Jaroslaw Kaminski
November 8, 2018 at 10:15 amOu! Thank you! So it was just a “wiggle” function xD haha
One more question, how to pin or insert an anchor point at the end of the orange toothbrush in your attached example, so it would stay in place? As the arm is behind the body, if I doesn’t do that, it will go all over the place. I would like to somehow be stuck, and move by only rotation
-
Kalleheikki Kannisto
November 8, 2018 at 2:24 pmThere might be an easier solution, but all I can think of right now is a “lookAt” solution. You would have a third null in the point where you wanted the brush handle to point towards and add a lookAt() to the rotation of second null (the one that moves in elliptical fashion). Unfortunately it’s somewhat tedious with 2D layers in After Effects…
I’m sure there’s a simpler solution involving the rotation value of the center null and a sine function, but can’t figure out the code in my head. Need more coffee.
Kalleheikki Kannisto
Senior Graphic Designer -
Jaroslaw Kaminski
November 14, 2018 at 10:15 amThank for your help, I appreciate it. For now I will try to tweak some layers position and kind of imitate that “LookAt” expression, but I will keep it in mind for later.
As I wanted to use expression you wrote to me earlier in the topic,, I have encountered problem when splitting rotating null layer. I wanted to start the rotation from a given time but the whole rotations stops – would you have an idea how to deal with that issue, and how to set animation to start from let’s say 5th second?
-
Kalleheikki Kannisto
November 14, 2018 at 11:43 amIf you split it at 5 seconds, you should get the desired result by changing the null layer name in the expression to be the same as the null layer that exists after that point (“Null 3” or whatever yours is called).
Kalleheikki Kannisto
Senior Graphic Designer
Reply to this Discussion! Login or Sign Up