用户名 密    码

Maya动画教程:制作翻板动画(2)

来源:互联网 作者:未知 发布时间:2011-03-16 11:19:35 网友评论 0

  2、指定一个统一的贴图坐标。

Maya制作翻板动画
创建脚本:  for($index=1;$index<101;$index++)
   {
   string $nm="pCube"+$index;
   float $v=floor($index/10)*.1+.1;//get v value opposite to the cube
   float $u=floor($index%10/10.0*10)*.1+.01;//get u value
   float $sampleV[]=`colorAtPoint -u $u -v $v file1`;get the color info on specified UV
   rotate -a -os ($sampleV[0]*180) 0 0 $nm;//ma

搜索栏目