Run when the animation (or animation group) begins to play

Signature:

OnPlay(self)

Arguments:

  • self - Reference to the widget for which the script was run (animation)