您的位置 > 知道问题页

  • amorti 这一类型脚本语言的注意事项

  • AE
  • amorti = effect("Damping")(1);

    freq = effect("Elasticity")(1);

     

    rebond = effect("Bounce")(1);

     

    if (numKeys > 1 && freq != 0 ){

    if (nearestKey(time).index == 1) { value }

    else {

     

    if (length(velocity) == 0) {

     

    tempsClefProx = nearestKey(time).time;

     

    if ( tempsClefProx <= time ) {tempsDebut = tempsClefProx }

    else { tempsDebut =key(nearestKey(time).index-1).time }

     

    temps = time - tempsDebut;

     

    spring =velocityAtTime(tempsDebut-thisComp.frameDuration) * ( .15/freq * Math.sin(freq* temps * 2 * Math.PI) / Math.exp( temps * amorti ) );

     

    if (rebond == 0) valueAtTime(tempsDebut) +spring;

     

    if (rebond == 1 &&  valueAtTime(tempsDebut-thisComp.frameDuration)>  valueAtTime(tempsDebut))valueAtTime(tempsDebut) + Math.abs(spring);

     

    if (rebond == 1 && valueAtTime(tempsDebut-thisComp.frameDuration) <  valueAtTime(tempsDebut))valueAtTime(tempsDebut) - Math.abs(spring);

     

    }

    else { value }

    }

    }

    else { value }

    能够讲解一下一下这个表达式的具体含义吗 ?

    最近在研究一个模板  里面有一些问题希望能得到解答 谢谢

  • 清风指尖划过  发表于:[ 2014-08-29 11:29 ] 添加回复
  • 1个回复

#1

  • 添加回复
发帖

发起人

  • 清风指尖划过 关注
  • 共发起提问:1次
  • 问题状态

    • 问题状态:等待解决
    • 发表于:2014-08-29 11:29
    • 回复数:153 次
    • 浏览:2320 人

    该软件其他问题