Slowing Down Rand

Hi there,

I have created an expression to make an object randomly move about

cellWall.translateX=rand(0.01,0.02)
cellWall.translateY=rand(0.01,0.02)
cellWall.translateZ=rand(0.01,0.02)

It changes it's position on every frame.

Is there any way to make it move less, i.e. every 5 frames or 10 ? BUT still interpolate between each random key frame. I don

Use noise instead of rand!

Hiya,

Please can you be more specific ?

What would be the expression I would need to use ?

Many thanks,

Matt

CODE
$magnitude=1;
$freq=0.1;
$noise=$magnitude*dnoise($freq*time*<>);
nurbsSphere1.translateX=$noise.x;
nurbsSphere1.translateY=$noise.y;
nurbsSphere1.translateZ=$noise.z;

Don't set a key frame every frame, set one every two to five frames. This will leave room for the interpolations you want. They are there but you don't see them. If you already set random keyframes on everything, you can also scale the animation curves in time. I like the animToolbox script for randomizing, scaling, and offseting animations curves. It might be worth your time to check that one out too.

Jim

Hes not settig keys just using expressions.