Go Back   Lightwave Community at SimplyLightwave > Categories > Animation
Register FAQ Members List Calendar

Reply
 
Thread Tools
Old 31-10-2008, 09:28 PM   #1
NoStr0m0
Registered Member
 
NoStr0m0's Avatar
 
Join Date: Jan 2005
Location: Somewhere... in 3D space
Posts: 153
Default Random Motion on X & Y axis

I have this point that needs to move on a grid by a random amount of spaces, in a random direction.

What I would like is to use some expressions so I wouldn't have to animate it myself, thus respecting the original algorithm idea, which is the randomness of the motions.

The problem that arises is the random() function generates a random number every frame, not only when it's called.
Is there a way to work around this function or make it generate a random value only once every k frames or keep the generated random value for those k frames?

I've been at this for two days now and probably I'm missing the obvious, so any suggestions are greatly appreciated.

Thank you!

Here are two images to get an idea of about the motion and the problem.


__________________
" ...'till the world burned!"

Last edited by NoStr0m0; 31-10-2008 at 09:30 PM.
NoStr0m0 is offline   Reply With Quote
Old 01-11-2008, 10:24 PM   #2
NoStr0m0
Registered Member
 
NoStr0m0's Avatar
 
Join Date: Jan 2005
Location: Somewhere... in 3D space
Posts: 153
Default

Or at least another way to write that expression to only get Frame K, without the fractional parts. (meaning frame 1, without the 1,1;1,2...1,9)
__________________
" ...'till the world burned!"
NoStr0m0 is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation: Random Souls Kojocci W.I.P 1 19-09-2006 01:33 AM
rotating back to correct axis juney Modeling 3 16-09-2005 08:27 AM
Motion for tree Redhawi Animation 0 23-01-2005 07:10 AM
Offsetting axis of model keef Animation 4 28-04-2004 10:48 AM
Axis Prob Fade LightWave Basics 3 07-01-2004 11:28 PM


Forum Jump




Online since 2001
A good place to start for a newbie
Catch up with SimplyLightWave
SimplyLightWave was first started in London 14 years ago, and we've been dedicated to producing quality software training ever since. Faithful to the principle of learning by doing, our project based courses aim to give you the practical skills to quickly start creating your own work in LightWave. More...
Copyright © 2001-2018 SimplyLightWave | Terms & Conditions | Privacy Policy
/* Contact Form */