Hey, I'm experimenting with waapi to get a better understanding of its features and find its use in my day to day development. So far I've been successful in integrating it as an engine API and retrieving items selected in Wwise authoring and subscribing to authoring onSelectionChanged events. Unfortunately I cannot find a way to push a ui command back to wwise authoring using the waapi. Regardless of what I try, it always results in std::future throwing exceptions regarding the results of the attempted action. Since there's no example of passing such a command through waapi in the sample waapi client, I've been trying and failing to make it work for me, but to no result.
Could you give me an example of how a ui command can be passed?
Here's how I'm attempting to get this done:
AkJson args(AkJson::Map
{
{
"command", AkVariant("FindInProjectExplorerNoSyncGroup")
},
{
"objects", AkJson::Array
{
AkVariant( (std::string)GUID.AsChar() ),
},
}
});
m_waapiConnectionClient->Call( ak::wwise::ui::commands::execute, args, AkJson( AkJson::Map() ), AkJson( AkJson::Map() ) );
I've also tried a variant with passing in a reference for the results map, but the result was the same.
I would appreciate an example of using this functionality. Thanks!