- Three frame animation that cycles through the token image/portrait/handout.
- n frame animation that loops through the images on a table.
Macros explained
onCampaignLoad calls animate which starts the overlay containing the JavaScript timing business.
animationRegister builds a JSON of animations to run and stores it as a property on the lib token.
Stop All closes the overlay and consequently stops the animations. It doesn't work well and needs to be clicked a bunch of times before it happens.
OCS (onChangeSelection) toggles the animation on and off.
animProcess takes the output of the overlay and selects the appropriate image changing macro.
frame3 cycles the images on the token.
frameTbl steps through the image table.