当前位置: 主页 > 平面设计 > Maya制作翻板动画

Maya制作翻板动画

  • 2022-02-06
  • 来源/作者: PS.ONEGREEN.ORG    / 佚名    
  • 2 次浏览

  首先看一下动画效果。

  Maya制作翻板动画

  控制翻板方式的是一个灰度动画序列图片。

  Maya制作翻板动画

  1、首先,创建一个10*10的cube矩阵。如图。

  Maya制作翻板动画

  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
ke cube rotate 
   }