How can I randomly animate the Z position of a 3D layer

Scripting for After Effects

How can I randomly animate the Z position of a 3D layer

Postby pandocrator on 04/27/2015, 12:27 pm

Hi,

Is anyone kkind enough to learn to me how can I random animate the Z position of a 3D layer?

Thanks a lot scientists! ;)
pandocrator
 
Posts: 3
Joined: 04/27/2015, 12:25 pm
System Specs: win7 64 i7

Re: How can I randomly animate the Z position of a 3D layer

Postby krisq on 04/28/2015, 1:30 am

alt+click on position value and add this simple expression:

freq=5
amp=150
value+[[0],[1],wiggle(freq,amp)[2]]

Layer obviously needs to be 3D. You can change frequency and amplitude of the effect. Is this what you're looking for?
krisq
 
Posts: 409
Joined: 08/3/2008, 9:52 am

Re: How can I randomly animate the Z position of a 3D layer

Postby pandocrator on 04/28/2015, 10:20 am

Hi Kris, you are a genius and thanks a lot.
But I have a problem this is always straight to the camera effect.
When I rotate it in 3D, its direction is not aligned in 3d rotation, it goes back and forth instead of rotated angle.
If you get what I mean.

Still thanks so much
pandocrator
 
Posts: 3
Joined: 04/27/2015, 12:25 pm
System Specs: win7 64 i7

Re: How can I randomly animate the Z position of a 3D layer

Postby pandocrator on 04/28/2015, 10:25 am

Hey skip that man, I added your expression to anchor point and its perfect!

THANKS SO MUCH! :D
pandocrator
 
Posts: 3
Joined: 04/27/2015, 12:25 pm
System Specs: win7 64 i7

Re: How can I randomly animate the Z position of a 3D layer

Postby krisq on 04/29/2015, 1:07 am

pandocrator wrote:Hey skip that man, I added your expression to anchor point and its perfect!

THANKS SO MUCH! :D

Glad you sort it out on your own. That's the best way of learning.
krisq
 
Posts: 409
Joined: 08/3/2008, 9:52 am


Return to After Effects Expressions