3 Replies Latest reply on Apr 14, 2017 7:55 AM by Szalam

    Expressions not working

    joebedington Level 1

      I've just started looking in adding spring expressions to save time on animation and i've copied a few expressions off website to get a nice bounce an all so far don't want to work. I keep getting an error. See attached. Am i missing something fundamental??Screen Shot 2017-04-13 at 16.08.01.png

        • 1. Re: Expressions not working
          Mylenium Most Valuable Participant

          We can't know. Show us the full expression code and explain exactly where you are applying it. also, by all means start by renaming your layers and comps suitably. Wrongly handled named references often cause all sorts of issues.



          • 2. Re: Expressions not working
            joebedington Level 1

            Below is the expression i copied from a site and i was just trying to apply it to a scale on some text (For small-to-medium sized enterprises)






            mult = (bounces-Math.floor(t*freq))/bounces;

            if (n>0 && mult>0) {

              v=velocityAtTime(key(n).time-0.001)*amp; //velocity to use

              b=Math.abs(Math.sin(freq*t*Math.PI))*Math.pow(mult,decay); //bounce calculation


            } else {value;}

            • 3. Re: Expressions not working
              Szalam Adobe Community Professional & MVP

              What site was it? I don't think you have the full code copied.