Part 3– Making stuff random
This tutorial should take around 10 minutes to complete
or this tut, we'll have a look at the random function, object positioning and also
do some more loops for practice.
For this tut, we'll have a look at the random function, object positioning and also
do some more loops for practice.
Intro
Here is our hypothetical scenario. We want to build a fence across a
field. We have made an array of tall boxes - 20 of them - for fence
posts unfortunately they look really uniform and CG like. What to
do? Maxscript to the rescue.
The Random Function
Open the listener and type in the following command:
random 1.0 35.0
Maxscript will return a float number between 1 and 35. Notice how putting .0 after the
number
made maxscript realise...