Skip to content

Currently Selected Animation

Expert Topic for experienced builders.
URI (GET)
/Animations/Selected/
Request Parameters
none
Response Parameters
string selectedAnimationName
int selectedAnimationIndex
ExampleSelectedAnimations.py
import requests
import json
port = 59224
baseUrl = 'http://localhost:{}/'.format(port)
requestUrl = baseUrl + 'Animations/Selected/'
try:
response = requests.get(requestUrl)
response.raise_for_status()
responseData = response.json()
print ('Selected Animation: {} at index {}'.format(responseData['selectedAnimationName'], responseData['selectedAnimationIndex']))
print ('------')
except requests.exceptions.RequestException as e:
raise SystemExit(e)