Expert Topic for experienced builders.
/Animations/Selected/nonestring selectedAnimationNameint selectedAnimationIndeximport requestsimport json
port = 59224baseUrl = '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)