コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

0 支持
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!
Michelle A. (220 ポイント) General Discussion

回答 1

+1 支持

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"
    ]
}

Bernard R. (Audiokinetic) (35.8k ポイント)
...