1 Reply Latest reply on Feb 8, 2012 10:49 PM by Mylenium

    how to move a light that has an expression

    urglikl

      howdy all.

       

      i am watching a help video on using trapcode soundkeys and particular.

       

      anyway, it shows dragging a light to the center of the comp that already has a position expression from soundkeys

       

      a = thisComp.layer("soundkeys").effect("Sound Keys")("Output 1");

      b = thisComp.layer("soundkeys").effect("Sound Keys")("Output 2")*2;

      c = thisComp.layer("soundkeys").effect("Sound Keys")("Output 3")*3;

       

      y = a + b + c;

       

      value = +  [0,y]

       

      when i apply this expression the light moves to the left edge of the composition and up near the top and i cannot drag/reposition it

       

      in the usual ways as long as the expression is active.

       

      my impression is that this expression defines movement and not an origin position

       

      is there a key i must push when i try to drag a light or other object that has a position expression to reposition?

       

      using af 5.5

       

      thank you

        • 1. Re: how to move a light that has an expression
          Mylenium Most Valuable Participant

          Well, you are not adding the base values anywhere, hence your expression doesn't know about them:

           

          a = position[0]+ thisComp.layer("soundkeys").effect("Sound Keys")("Output 1");
          b = position[1]+ thisComp.layer("soundkeys").effect("Sound Keys")("Output 2")*2;
          c = position[2]+ thisComp.layer("soundkeys").effect("Sound Keys")("Output 3")*3;
          

           

           

          Mylenium