2012年11月26日星期一


//clean up
SelectAll;
doDelete;

//buil grid
float $spaces=2;

for ($E=1;$E<7;$E++)
{
for ($W=1;$W<7;$W++)
{
for ($Q=1;$Q<7;$Q++)
{ float $cubex=rand(2);
float $cubey=rand(2);
float $cubez=rand(2);
polyCube -width $cubex -height $cubey -depth $cubez;
move -r ($Q*$spaces) ($W*$spaces) ($E*$spaces);
}
}
}

//do sth
string $mySel[] = `ls -selection`;
int $i=1;
int $ID=1;
float $transY = 0.0;
float $rad=rand(8,9);
for ($each in $mySel)
{
select -r $each;
move ($rad*cos(rand($i * $ID))) ($transY) ($rad*sin(rand($i * $ID)));
$i += 24;
$ID += 1;
$transY += 0.3;
select $mySel;
}  



this it the script I show today ,I wanna build a text which can output a tronado feeling  .like action the script one time ,the objs will move around  with randomized speed and position .so ...like frame by frame you will see in a stop motion.

with what I learn today ,I mean the coop with the expression.I will try it in that way.hope I can output it good.

没有评论:

发表评论