Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

How can I find all objects which have no references?

0 votes
I want to find a list of all objects of certain types (random containers and blend containers) which are not referenced by any events.

How can I achieve this?
asked Jul 14, 2023 in General Discussion by Lawrence S. (110 points)

1 Answer

0 votes

Hey Lawrence, 

Great question! Not sure if you can do that specifically, but how about reversing the search? 

For instance, start by finding all Random Containers and Blend Containers:
$ from type RandomSequenceContainer, blendContainer

... then copy the above list into a spreadsheet and search for all containers with reference to an Event Action:
$ from type RandomSequenceContainer, blendContainer select referencesto where type = "action" 

... and then go back to the target containers of the actions: 
$ from type RandomSequenceContainer, blendContainer select referencesto where type = "action" select target

From here, you could probably just filter the list of containers assigned to Event Actions, with the full list of random/blend containers in e.g. Google Sheet. Maybe something along the lines of...
=filter(A2:A, ISNA(MATCH($A2:A,$B$2:$B,0)))
... where A is the full list and B is the containers assigned to Event Actions.

If you're trying to clean out your Wwise project, here are a few other possibly useful WAQL sentences.
Get all empty Random or Sequence Containers: $ from type RandomSequenceContainer where childrenCount < 1
Get all Events with no Actions: $ from type Event where childrenCount < 1

Hope this works for you!

answered Jul 16, 2023 by Mads Maretty S. (Audiokinetic) (39,060 points)
I was trying to answer this question for a while last week and got stumped. This is a brilliant solution!
...