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 RadiusMax value from the Attenuation object via WAAPI given the Sound object ID?

How do I get the Attenuation or other object properties if I only have the object ID for the Sound or AudioSource object?

Thanks!
in General Discussion by Michelle A. (220 points)

1 Answer

+1 vote

Using the ak.wwise.core.object.get, use the options to specify what to obtain.

In the return options, use:

  • "@@Attenuation" on an actor-mixer hierarchy object, music object or bus object, to obtain the attenuation object id and name, taking into consideration the Override parent settings.
  • "audioSource:maxRadiusAttenuation" on an actor-mixer hierarchy object, music object, bus object or event object, to obtain the max radius value for an object, and the attenuation object id
  • "@RadiusMax" on an attenuation object to obtain the max radius property value.

Example, to obtain the Attenuation object from a Sound id or Source id:

 

Arguments:
{
    "from": {
        "id": [
            "{24979032-B170-43E3-A2E4-469E0193E2C3}"
        ]
    }
}

Options:
{
    "return": [
        "@@Attenuation"
    ]
}

Note that with 2019.1.0+, you can chain accessors:

{
    "return": [
        "@@Attenuation.@RadiusMax"
    ]
}

Which is very similar to:

{
    "return": [
        "audioSource:maxRadiusAttenuation"
    ]
}

by Bernard R. (Audiokinetic) (35.8k points)
...