nazcaLine
05-27-2008, 11:06 PM
hi everybody
i'm just learning maxscript from the very basics. i found a tutorial in which you can move and rotate a collection of objects randomly.this is the script:
for obj in $ do (
randX = random 2.0 4.0
randY = random 2.0 4.0
move obj [randX,randY,0]
randRot=random 0 360
rotRand= eulerangles 0 randRot 0
rotate $ rotRand
)
but when i apply it, it just works for the move, it aassignd different values for every object.however, with rotation and scale it applies the same value to all objects. why is this? why only move works and the other ones not? i tried with primitives and mesh objects, is the same.
if somebody can give me a hand i will really appreciate it, since the start in any matter is always harsh.
thanks in advance.
i'm just learning maxscript from the very basics. i found a tutorial in which you can move and rotate a collection of objects randomly.this is the script:
for obj in $ do (
randX = random 2.0 4.0
randY = random 2.0 4.0
move obj [randX,randY,0]
randRot=random 0 360
rotRand= eulerangles 0 randRot 0
rotate $ rotRand
)
but when i apply it, it just works for the move, it aassignd different values for every object.however, with rotation and scale it applies the same value to all objects. why is this? why only move works and the other ones not? i tried with primitives and mesh objects, is the same.
if somebody can give me a hand i will really appreciate it, since the start in any matter is always harsh.
thanks in advance.
