AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

WAAPI - Get project dirty state not working

0 支持

This:

_project_is_dirty = client.call("ak.wwise.core.object.get", {"from": {"ofType": ["Project"]},
                                "options": {"return": ["workunit:isDirty"]}})["return"][0]["workunit:isDirty"]
Returns alwasy False, even if the project has suffered moidifications. I am on Wwise 2019.2.1 if that matters.
Is this possibly a bug?
Eduardo B. (270 ポイント) 2020 5/21 質問 General Discussion

回答 1

+1 支持
 
ベストアンサー

This would only check for the dirty flag on the project object (it would be true if you modify project settings for example). You also need to check for the dirty flags on all work units.

Here is how:

objects = client.call("ak.wwise.core.object.get", {"from": {"ofType": ["Project", "WorkUnit"]},
                                "options": {"return": ["workunit:isDirty"]}})["return"]

_project_is_dirty = any(map(lambda x:x["workunit:isDirty"],objects))
pprint.pprint(_project_is_dirty)

Bernard R. (Audiokinetic) (35,110 ポイント) 2020 5/22 回答
Bernard R. (Audiokinetic) 2020 5/22 選択
Thx Bernard! Didnt quite get the dirty project concept.
...