3 Replies Latest reply on Apr 17, 2007 2:38 PM by Greg Dove

    Calling alternating functions

    gregoryrwalker
      I have two functions called functionA() and functinoB(). As the play head travels down the timeline I'd like to call functionA() on frame 100, functionB() on frame 200, functionA() on 300, functionB() on 400 and so on. However, instead of having to type functionA() or functionB() in the keyframe, I'd like to just type functionCaller() and have some logic in that function that would call the appropriate function based on the last function called. I've tried an if/else function based on a variable I change back and forth as each function runs, but it just keeps choosing functionA() over and over. Any suggestions?

      --gw