menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

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?
分类:General Discussion | 用户: Eduardo B. (270 分)

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.8k 分)
采纳于 用户:Bernard R. (Audiokinetic)
Thx Bernard! Didnt quite get the dirty project concept.
...