Created
November 30, 2018 14:21
-
-
Save decasteljau/b277cb9fdb1503f3369a5f66782cf148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\\Sequence", | |
"property": "MidiVelocityFilterMin", | |
"value":"9" | |
} | |
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