用户名 密    码

After Effects 插件教程:Echospacec插件帮AE创建三维运动特效(3)

来源:互联网 作者:未知 发布时间:2010-08-22 19:17:34 网友评论 0


  从图5中我们可以看出,一共建立了10个Shape层,其中2#-10#Shape层为Echospace创建复制的新层,-null层和1个Main层为Echospace效果自动生成,Shape层、null层和Main层之间的Parent关系由系统自动建立,完全不需要手工操作,十分方便快捷,而且运动控制精度高。 
7、运动表达式
  在图7中,系统自动给2#-10#Shape复制层的轴心点(AnchorPoint)、位置(Position)、放大系数(SCALE)、Orientation(方位)、X轴旋转(XRotation)、Y轴旋转(YRotation)、Z轴旋转(ZRotation)、透明度(Opacity)属性建立了运动表达式。

\

图7 Shape层的运动表达式
  这里我们对图7中的表达式做一简单介绍:
  1、AnchorPoint(轴心点)的运动表达式
  src=thisComp.layer("shape"); //选择shape层
  lt=time-1*src.effect("tc Echospace")("Transform Delay ");
  src.anchorPoint.valueAtTime(lt)
  //shape复制层与shape原始层的Echospace特效Transform 轴心一致
  2、Positon的运动表达式
  src=thisComp.layer("shape");
  lt=time-1*src.effect("tc Echospace")("Transform Delay ");
  src.Position.valueAtTime(lt)
  //shape复制层与shape原始层的Echospace特效Transform位置一致
  3、Scale的运动表达式
  src=thisComp.layer("shape");
  rt=time-1*src.effect("tc Echospace")("Repeater Delay ");
  lt=time-1*src.effect("tc Echospace")("Transform Delay ");
  src.scale.valueAtTime(lt)+src.effect("tcEchospace")("Scale").valueAtTime(rt)*1*
  //shape复制层与shape原始层的Echospace特效Transform缩放一致
  4、Orientation的运动表达式
  src=thisComp.layer("shape");
  lt=time-1*src.effect("tc Echospace")("Transform Delay ");
  src.orientation.valueAtTime(lt)
  // shape复制层与shape原始层的Echospace特效Transform方位一致
  5、XRotation运动表达式
  src=thisComp.layer("shape");
  lt=time-1*src.effect("tc Echospace")("Transform Delay ");
  src.rotationX.valueAtTime(lt)
  // shape复制层与shape原始层的Echospace特效Transform X旋转一致
  6、YRotation运动表达式
  src=thisComp.layer("shape");
  lt=time-1*src.effect("tc Echospace")("Transform Delay ");
  src.rotationY.valueAtTime(lt)
  7、ZRotation运动表达式
  src=thisComp.layer("shape");
  lt=time-1*src.effect("tc Echospace")("Transform Delay ");
  src.rotation.valueAtTime(lt)
  8、Opacity运动表达式
  src=thisComp.layer("shape");
  rt=time-1*src.effect("tc Echospace")("Repeater Delay "); lt=time-1*src.effect("tc Echospace")("Transform Delay "); src.opacity.valueAtTime(lt) + src.effect("tc Echospace")("Opacity").valueAtTime(rt)*1
  //shape复制层与shape原始层的Echospace特效Transform透明度一致
  同样,系统自动给-null层的位置(Position)、X轴旋转(XRotation)、Y轴旋转(YRotation)、Z轴旋转(ZRotation)属性建立了运动表达式。如图8所示。

\

 图8 null层的运动表达式
图8中位置(Position)属性的运动表达式:
  src=thisComp.layer("Shape");
  t=time-1*src.effect("tc Echospace")("Repeater Delay ");
  x=src.effect("tc Echospace")("X Offset").valueAtTime(t)*1;
  //把Shape层EchoSpace效果中的X轴向在某时间点的偏移值赋予变量x
  y=src.effect("tc Echospace")("Y Offset").valueAtTime(t)*1;
  //Shape层的EchoSpace效果中的Y轴向在某时间点的偏移值赋予变量y
  z=src.effect("tc Echospace")("Z Offset").valueAtTime(t)*1;
  //Shape层的EchoSpace效果中的Z轴向在某时间点的偏移值赋予变量z
  rx=src.effect("tc Echospace")("X Offset Random");
  //Shape层的EchoSpace效果中的X轴向随机偏移值赋予变量rx
  ry=src.effect("tc Echospace")("Y Offset Random");
  //Shape层的EchoSpace效果中的Y轴向随机偏移值赋予变量ry
  rz=src.effect("tc Echospace")("Z Offset Random");
  //Shape层的EchoSpace效果中的Z轴向随机偏移值赋予变量rz
  seedRandom(0,true);//随机函数不受时间影响
  rnd=random(,);
  //rnd的值在,之间随机变化
  +rnd // x,y,z获取坐标值
  旋转属性运动表达式如图9所示:

\

 图9 旋转属性的运动表达式

搜索栏目