Skip to content

Instantly share code, notes, and snippets.

@decasteljau
Created February 26, 2019 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save decasteljau/6060df1eb419d844ea0fde6d45b0e7f4 to your computer and use it in GitHub Desktop.
Save decasteljau/6060df1eb419d844ea0fde6d45b0e7f4 to your computer and use it in GitHub Desktop.
from waapi import WaapiClient, CannotConnectToWaapiException
from pprint import pprint
try:
# Connecting to Waapi using default URL
with WaapiClient() as client:
# Simple RPC
args = {
"object": "\\Actor-Mixer Hierarchy\\Default Work Unit\\_f",
"reference": "Effect0",
"value":"Effect:Fear_no_Evil"
}
result = client.call("ak.wwise.core.object.setReference", args)
pprint(result)
except CannotConnectToWaapiException:
print("Could not connect to Waapi: Is Wwise running and Wwise Authoring API enabled?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment