Skip to content

Instantly share code, notes, and snippets.

@ak-brodrigue
Created July 4, 2023 13:14
Show Gist options
  • Save ak-brodrigue/6c8713a9e13cd704c2f5d122fc70b0cf to your computer and use it in GitHub Desktop.
Save ak-brodrigue/6c8713a9e13cd704c2f5d122fc70b0cf to your computer and use it in GitHub Desktop.
Python script returning all actor mixer objects not referenced by an event
from waapi import WaapiClient
# Connect (default URL)
client = WaapiClient()
options = {
'return': ['name', 'id', 'type', 'path']
}
AMH = client.call("ak.wwise.core.object.get", {
'waql': '$ "\Actor-Mixer Hierarchy" select descendants' }, options=options)['return']
for obj in AMH:
actions = client.call("ak.wwise.core.object.get", {
'waql': f'$ "{obj["id"]}" select this, descendants, ancestors select referencesTo where type = "action"' }, options=options)['return']
if len(actions) == 0:
print(obj['path'])
# Disconnect
client.disconnect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment