Community Q&A

Where Wwise users help each other out!

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

Wwise API Get Properties - getPropertyInfo

0 votes
Hi, is it possible to get the value of the property of an object using the API command getPropertyInfo?  I'm using version 2017.2.5, and need to get properties of any object of any object type.

From the documentation, it looks like it's only able to get the possible values of an object's properties, but not the actual property values of an object.  How can I do that?

Thanks in advance
asked Nov 15, 2018 in Feature Requests by Michelle A. (180 points)

1 Answer

0 votes
 
Best answer

To retrieve object property values, you need to use ak.wwise.core.object.get.

For example, to get the Volume, name and id:

var query = {
    from: { id: [
        '{A076AA65-B71A-45BB-8841-5A20C52CE727}',
    ] }
};
var options = {
    return: ['id', 'name', '@Volume']
};

session.call('ak.wwise.core.object.get', [], query, options);

Or you could pass the path:

var query = {
    from: { path: [
        "\\Actor-Mixer Hierarchy\\Default Work Unit\\MySoundStereo",
    ] }
};
var options = {
    return: ['id', 'name', '@Volume']
};
session.call('ak.wwise.core.object.get', [], query, options);

https://www.audiokinetic.com/library/edge/?source=SDK&id=waapi__query.html

answered Nov 16, 2018 by Bernard R. (Audiokinetic) (27,120 points)
selected Nov 16, 2018 by Michelle A.
...