Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

API support for Animations?

Is there any API support for animation objects at all implemented as of yet?  I put together a great bit of animated lightning for my background during stormy weather; is there a way to trigger it to run once without looping?
1554471422

Edited 1554471449
The Aaron
Roll20 Production Team
API Scripter
No API support yet beyond creating the objects. Probably your only current option is to put a long empty frame at the end of the animation and when you create the object use setTimeout() to schedule removing it sometime within that long frame. 
Can you create animation objects with the API?  How do you set the imgsrc --- I tried, but couldn't get it to work.
1554485792
The Aaron
Roll20 Production Team
API Scripter
You can, they just need to be in a user image library like other api created graphic objects.