FORUMS: list search recent posts

Looking for a most effective way to do movement after the elipse

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jaroslaw Kaminski
Looking for a most effective way to do movement after the elipse
on Oct 31, 2018 at 10:17:20 am

I'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?


Return to posts index

Kalleheikki Kannisto
Re: Looking for a most effective way to do movement after the elipse
on Oct 31, 2018 at 2:39:27 pm

Two 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


Return to posts index

Jaroslaw Kaminski
Re: Looking for a most effective way to do movement after the elipse
on Nov 4, 2018 at 6:12:45 pm

How to add this expresion to a null? Animation->Add expression is inactive


Return to posts index


Steve Bentley
Re: Looking for a most effective way to do movement after the elipse
on Nov 5, 2018 at 1:25:51 am

You 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.



Return to posts index

Jaroslaw Kaminski
Re: Looking for a most effective way to do movement after the elipse
on Nov 5, 2018 at 11:19:59 am

Hmm, 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?


Return to posts index

Jaroslaw Kaminski
Re: Looking for a most effective way to do movement after the elipse
on Nov 7, 2018 at 1:36:51 pm

What do you mean by "adding a wiggle" ? How do you picturing that?


Return to posts index


Kalleheikki Kannisto
Re: Looking for a most effective way to do movement after the elipse
on Nov 7, 2018 at 3:37:22 pm

See the attached dummy project.

12867_rotatingtoothbrush.aep.zip

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

Jaroslaw Kaminski
Re: Looking for a most effective way to do movement after the elipse
on Nov 8, 2018 at 10:15:26 am

Ou! 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


Return to posts index

Kalleheikki Kannisto
Re: Looking for a most effective way to do movement after the elipse
on Nov 8, 2018 at 2:24:58 pm

There 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...

https://forums.creativecow.net/docs/forums/post.php?forumid=227&postid=1050...

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


Return to posts index


Jaroslaw Kaminski
Re: Looking for a most effective way to do movement after the elipse
on Nov 14, 2018 at 10:15:09 am

Thank 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?


Return to posts index

Kalleheikki Kannisto
Re: Looking for a most effective way to do movement after the elipse
on Nov 14, 2018 at 11:43:34 am

If 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


Return to posts index

Jaroslaw Kaminski
Re: Looking for a most effective way to do movement after the elipse
on Nov 14, 2018 at 1:56:57 pm

So do I need to split Master null or Rotating null?

Look, I'm splitting master null, then parent layer to that splitted null layer - and animation goes even before this 5s moment.So basically it does nothing, the rotation is still provided.
It's the same if I'm doing it at rotating null layer, so I just got stupid right now


Return to posts index


Kalleheikki Kannisto
Re: Looking for a most effective way to do movement after the elipse
on Nov 14, 2018 at 7:48:09 pm

Did you change the name of the layer in the expression?

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

Jaroslaw Kaminski
Re: Looking for a most effective way to do movement after the elipse
on Nov 28, 2018 at 10:32:26 am

Basically, the marked selection of rotating layer (1st do 3rd second of animation), is an example where I would like to have rotation active. In the rest of the timeline it should be inactive, but I can't manage to do that. The rotating motion doesn't want to stop.
I've edited file that you've send me.
12915_12867rotatingtoothbrushedited.7z.zip


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]