Created
July 4, 2023 13:14
-
-
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
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 | |
# 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