edtheknife
12-08-2006, 01:45 PM
Hi,
this is, I am sure, a real simple question --- if you speak mel better than I do.
Lets say I have 5 cubes. I select them and want to run a script which scales each cubus to 1 1 1 or to 0.5 0.5 0.5 or to 0.75 0.75 0.75.
It is easy for me to scale them ALL at once to one of the three values :
float $test = rand (1);
if ( $test < 0.333) {
scale -r 0.5 0.5 0.5 ;};
if ( $test > 0.666) {
scale -r 0.75 0.75 0.75 ;};
print $test;
So my problem is more to make the script go through the selection step by step.
Any suggestions ?
this is, I am sure, a real simple question --- if you speak mel better than I do.
Lets say I have 5 cubes. I select them and want to run a script which scales each cubus to 1 1 1 or to 0.5 0.5 0.5 or to 0.75 0.75 0.75.
It is easy for me to scale them ALL at once to one of the three values :
float $test = rand (1);
if ( $test < 0.333) {
scale -r 0.5 0.5 0.5 ;};
if ( $test > 0.666) {
scale -r 0.75 0.75 0.75 ;};
print $test;
So my problem is more to make the script go through the selection step by step.
Any suggestions ?
