コミュニティQ&A

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

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

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

+1 支持
Hi,

I'm trying to make little program for automate importing tsv files via the waapi with Python.
I want to make a argument selectable during importing.
It is an ak.wwise.core.audio.importTabDelimited's argument which is 'importLanguage'.

Of course, I could provide as string that I manually type, such as 'English(US)', 'Korean',
but can I get the language list of the project where I wanna import? I mean the list of language we could check in Language Manager.

If i can, is there waapi API reference function for get the language list?
Or, is there a setting file that i could parse?

Thank you.
MMyyoo (200 ポイント) General Discussion

回答 1

+2 支持
 
ベストアンサー

 

You query the language list, however, you will need to filter out "Mixed", "SFX", "External", "SoundSeed Grain".

from waapi import WaapiClient
import pprint

# Connect (default URL)
client = WaapiClient()

# Return all targets
args = {
    "from": {
        "ofType": [
            "Language"
        ]
    }
}

options = {
    "return": ['name', 'id']
}
result = client.call("ak.wwise.core.object.get", args, options=options)
pprint.pprint(result)


# Disconnect
client.disconnect()

Bernard R. (Audiokinetic) (35.8k ポイント)
MMyyoo 選択
Thank you for the answer.

Anyway, I found other way, that is parsing the wproj file as xml.
but I will use waapi like your answer! it would be better.
thank you agian!
...