PDA

View Full Version : How to script a random motion node


doms
05-20-2008, 10:42 AM
Hi,
very basic question but to add random motion to a group i would write an expression like- cube.rotX = rand(-15,15) but how do i control the frequency so it doesn't calculate on every frame?

Cheers

BigSky
05-20-2008, 12:51 PM
use the outalpha of an animated noise texture (though a multiply node for control) and plug into your animating attribute. Or use noise(time);

doms
05-20-2008, 04:31 PM
Yup, that works for me, thanx for that.

CGTalk Moderation
05-20-2008, 04:31 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.