Run when the animation group's loop state changes

Signature:

OnLoop(self, "loopState")

Arguments:

  • self - Reference to the widget for which the script was run (animgroup)
  • loopState - Token identifying the new loop state (string)
    • FORWARD - In transition from the start state to the final state
    • NONE - Not looping
    • REVERSE - In transition from the final state back to the start state