2011年1月12日 星期三

PANDA_MASS_02l(Maya Mel)


基本上所使用的程式跟
上一個
一樣
只是將所畫的基本單元圖形
先畫好變型後再做為單元進行CODE創造圖形

Basically we use the same CODE as the
Create the basic freaky form as a component 
and let the code to create the FORM

the code is below:
proc balls(string $u) {

//vector $s = sphrand(1);
//move -r (rand(-10,10)) (rand(-10,10)) (rand(-10,10)) $u;
move -r (rand(-5,5)) (rand(-5,5)) (rand(-5,5)) $u;// move
scale (rand(1,3)) (rand(1,3)) (rand(1,3)) $u;// scale
rotate -r (rand(1,90)) (rand(1,90)) (rand(1,90));// rotate
}
//select `polySphere -r (rand(1,20)) -n "pSphere1"`;
//select `polyPlatonicSolid -r 1 -n "pSphere1"`;
//select `polyCube -w (rand(1,10)) -h (rand(1,10)) -d (rand(1,10)) -n "pSphere1"`;
//select "pSphere1";
select "pCube1";// change to the name you drew for the basic component //將名字改成你畫得基礎圖形名稱

for ($i=0; $i<300; ++$i) {
$sel = `ls -sl`;
select `instance $sel`;
$new = `ls -sl`;
setKeyframe -attribute "visibility" -v 0 -t 0 $new;
setKeyframe -attribute "visibility" -v 1 -t $i $new;

if($i%3==1){
select -r lambert1;
setAttr "lambert1.color" -type double3 1 1 1;
select $new;
hyperShade -assign lambert1;
}

if($i%3==2){
select -r lambert2;
setAttr "lambert2.color" -type double3 0 0 0;
select $new;
hyperShade -assign lambert2;
}

if($i%3==0){
select -r lambert3;
setAttr "lambert3.color" -type double3 0.5 0.5 0.5;
select $new;
hyperShade -assign lambert3;
}

balls($new[0]);
}

HERE COMES THE IMAGES:::




沒有留言:

張貼留言