Wrote this a year ago when I first got GG and was learning Lua so it isn't as polished as my more recent stuff but somebody might find it useful.
Based on Lee's twitch broadcast script but extended, you can manipulate multiple entities on screen at the same time (it's called ai_ because I created it to view animations on characters but it works for any animated entity) and edit the frame range whilst it is looping so you can see when you have the correct range.
Just attach to an animated entity in the usual way.
Been there, done that, got all the T-Shirts!