Skip to content

List of available animations

Expert Topic for experienced builders.
URI (GET)
/Animations/
Request Parameters
none
Response Parameters
string[] animations
Example_Animations.py
import requests
import json
port = 59224
baseUrl = 'http://localhost:{}/'.format(port)
requestUrl = baseUrl + 'Animations/'
try:
response = requests.get(requestUrl)
response.raise_for_status()
responseData = response.json()
print ('Animations:')
i = 0
for animationName in responseData['animations']:
print('Animation {}: {}'.format(i, animationName))
i += 1
print ('------')
except requests.exceptions.RequestException as e:
raise SystemExit(e)