hi. does anyone here know how to make a random script. for exp. random scale and rotation
for o in selection do o.scale = random
for o in selection do o.scale += random
for o in selection do o.scale = * (random 0.5 2.0)
selection.scale = * random 0.5 2.0
for o in selection do rotate o (random (EulerAngles 0 0 0) (EulerAngles 180 180 180) )
for o in selection do o.rotation = (random (EulerAngles 0 0 0) (EulerAngles 180 180 180) ) as quat
in coordsys local for o in selection do o.rotation = (random (EulerAngles 0 0 0) (EulerAngles 180 180 180) ) as quatwill do the same as the first rotate() example above - each object will rotate about its local pivot.
hey bobo. i have been using undo on (for obj in selection do obj.scale *= (random 0.85 1.0)) which has worked awesome for me for a few years! i believe i found it from one of your posts, like the one in this thread haha.
i'd like to use one that does just z-axis scale. so if i have 30 trees, all the same height, and i'd like to change the z-axis scale randomly between .6 and 1.2 how does that work?
thanks,
i get: unknown property "scale" in undefined.
i did find a cool tutorial, maybe i can glean something from that. seems to me that i've run into that problem before - unknown property. hm.
undo on (for obj in selection do obj.scale.z *= (random 0.2 3.0))
that worked. i think maybe i had an issue where i was doing something wrong with $ and which objs i had selected.