Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

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
in Feature Requests by Michelle A. (220 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

by Bernard R. (Audiokinetic) (35.8k points)
selected by Michelle A.
...