Maya Node frameCache
frameCache的简介和基本用法:
frameCache是maya的一个节点,可以将输入的数值延时输出; 在用户界面上是找不到的,但是可以通过mel命令来建立;
createNode frameCache -n "frameCache_test"; //建立一个名为frameCache_test的frameCache节点;
//假如Pa为移动物体; //Pb为跟随物体; connectAttr -f Pa.tx frameCache_test.stream; //链接Pa的tx到frameCache_test的stream上,输出Pa的tx运动给frameCache;
connectAttr -f frameCache_test.past Pb.tx; //链接frameCache_test的past到Pb的tx上,输出数值; //注意$i为你要延时的数字,如延时3帧,就是frameCache_test.past;
frameCache节点解算非常快,但是一个节点只能延时一个物体的一个通道; 也就是说,如果要延时一个物体的移动就要用到3个frameCache节点; 并将移动物体的tx,ty,tz分别进行链接,看似麻烦,但是它可以精确的控制物体移动延时的帧数。
摘自 奇宝短片工作室群