Skip to content

Instantly share code, notes, and snippets.

@decasteljau
Created November 10, 2020 14:45
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/0555a2afe97914658820ebd1bc4af6d4 to your computer and use it in GitHub Desktop.
Save decasteljau/0555a2afe97914658820ebd1bc4af6d4 to your computer and use it in GitHub Desktop.
from waapi import WaapiClient
import pprint
# Array of RGBA arrays
colors = [
[135, 135, 135, 1],
[55, 62, 200, 1],
[26, 85, 203, 1],
[8, 104, 104, 1],
[24, 109, 24, 1],
[86, 115, 13, 1],
[120, 114, 17, 1],
[121, 88, 21, 1],
[120, 68, 13, 1],
[114, 57, 44, 1],
[137, 36, 36, 1],
[125, 38, 125, 1],
[115, 43, 151, 1],
[89, 55, 174, 1],
[107, 111, 194, 1],
[99, 131, 197, 1],
[67, 137, 137, 1],
[83, 147, 83, 1],
[128, 152, 62, 1],
[160, 152, 39, 1],
[171, 135, 63, 1],
[174, 122, 66, 1],
[174, 102, 86, 1],
[185, 91, 91, 1],
[170, 80, 170, 1],
[155, 86, 189, 1],
[135, 96, 226, 1]]
# Connect (default URL)
client = WaapiClient()
# Return all events referencing the specified object
args = {
"from": {"path": ['\\Actor-Mixer Hierarchy\\Default Work Unit\\MySound']},
}
options = {
"return": ['@@Color']
}
result = client.call("ak.wwise.core.object.get", args, options=options)
# result = client.call("ak.wwise.core.object.get", args, options=options)
pprint.pprint(result)
pprint.pprint(colors[result['return'][0]["@@Color"]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment