Cl_instance.mel

[index]

27th March 2009   8:8pm 52sec
C:\Work\vsfx705\mel\Cl_instance.mel


instance_only able to read one constant calculation.



/*string $s1[] = polySphere -r 1;
string $s2[] = polyCube -height 1 -depth 1 -width 5;
string $g1[] = group $s1[0] $s2[0];
  
string $n1[] = instance;
    xform     -pivots 0 0 0
            -translation 0 1 0
              -ro 0 30 0;
        
string $n2[] = instance -st;
string $n3[] = instance -st;
string $all = group $g1 $n1 $ n2 $n3;
  
all;
*/
select -all;
delete;
  
  
polySphere; 
instance; 
for($n = 1; $n <= 50; $n++){
scale   1 1 1;
move     ($n * 0.2) 0 ($n*0.1); 
rotate     -pivot 0 0 0
        0 0 ($n * 1); 
 }
for ($i=1; $i<=100; ++$i) instance -st;