r2m
03-23-2003, 02:38 PM
i can't get this script to work the way i want.
it's suppose to rotate randomly the current selection with different values for every object.
when i use it, all the objects have the same rotation.
where did i got wrong ?
(except for the silly names of my variables ? :p )
string $prout2[] = `ls -sl`;
string $p;
for ($p in $prout2)
{
vector $prout_rot5 = sphrand(15);
rotate -r ($prout_rot5.x) ($prout_rot5.y) ($prout_rot5.z);
};
it's suppose to rotate randomly the current selection with different values for every object.
when i use it, all the objects have the same rotation.
where did i got wrong ?
(except for the silly names of my variables ? :p )
string $prout2[] = `ls -sl`;
string $p;
for ($p in $prout2)
{
vector $prout_rot5 = sphrand(15);
rotate -r ($prout_rot5.x) ($prout_rot5.y) ($prout_rot5.z);
};
