2 Replies Latest reply on Nov 16, 2012 7:37 AM by lcg_2012

    Is it possible to pass a variable from one animation to another?

    lcg_2012

      I have multiple animations on the same page. I need to pass a variable from one to the other.

       

      Animation One has this:

       

      sym.setVariable("myVarOne", 1);

       

      Animation Two has this:

       

      var myVarOneInTwo=Edge.getComposition("EDGE-12345678").getVariable("myVarOne");

       

      Seems like it should work, but kinda hard to tell. I put in:

       

      console.log("myVarOneInTwo = " + myVarOneInTwo);

       

      But I get: Javascript error in event handler! Event Type = timeline

       

      So it seems that it doesn't like getting a variable from another animation.

       

      Is there a way to pull a variable from one animation into another?