Maya Mel eval命令

来源:互联网 发布:全国乡镇村边界数据 编辑:程序博客网 时间:2024/04/29 13:44

string $theCommand = "";

int $x;

for ($x = 0;$x<5;$x++)

{

int $whichShape =rand(2.0);

switch ($whichShape)

{

case 0:

$theCommand += "sphere;";

break;

case 1:

$theCommand += "cone;";

break;

}

}

print("Now we`re going to execute " + $theCommand);

eval ($theCommand);

select -cl;

原创粉丝点击