翻板动画 [Maya制作翻板动画]

首先看一下动画效果。

Maya制作翻板动画1

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

Maya制作翻板动画2

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

Maya制作翻板动画3

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

Maya制作翻板动画4

创建脚本:

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;//make cube rotate

}