Skip to content

Instantly share code, notes, and snippets.

@decasteljau
Created February 26, 2019 13:58
Show Gist options
  • Select an option

  • Save decasteljau/ede0123f1e7aa7746df5d1dc8370a566 to your computer and use it in GitHub Desktop.

Select an option

Save decasteljau/ede0123f1e7aa7746df5d1dc8370a566 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",
"property": "3DPosition",
"value":"2"
}
result = client.call("ak.wwise.core.object.setProperty", 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