Random move Z

Random move Z

Anonymous
Not applicable
731 Views
2 Replies
Message 1 of 3

Random move Z

Anonymous
Not applicable
I'm trying to move a objects in a selection group a random amount in Z. Here's what I have:



Utility mov_z "move Z" -- My second script!
(
button movz "distribute Z"



on movz pressed do

(
ace = selectionSets
for i = 1 to ace.count do
(
zed = random -10 10: see
move ace
)
)
)


Instead of moving objects independently it goes through and moves the lot of them. Help. Thanks
0 Likes
732 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
That's because ace is a selection set, it's not each object in your selectionset. What you want is

ace = selectionSets
for obj in ace do
(
zed = random -10 10
move obj
)

Also, have you checked out the transformRandomizer script here?...

http://www.neilblevins.com/soulburnscripts/soulburnscripts.htm

It may do what you need without the need to write your own script.

- Neil
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Neil. Daaaa I forgot about the soulburn scripts.
0 Likes