mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Missing "data" field and enabling of audio
This commit is contained in:
parent
9369d4d931
commit
dbd03c6c5a
1 changed files with 9 additions and 1 deletions
|
|
@ -61,6 +61,14 @@ class AudioLoader(load.LoaderPlugin):
|
|||
|
||||
path = get_representation_path(representation)
|
||||
cmds.setAttr("{}.filename".format(audio_node), path, type="string")
|
||||
|
||||
cmds.timeControl(
|
||||
mel.eval("$tmpVar=$gPlayBackSlider"),
|
||||
edit=True,
|
||||
sound=audio_node,
|
||||
displaySound=True
|
||||
)
|
||||
|
||||
cmds.setAttr(
|
||||
container["objectName"] + ".representation",
|
||||
str(representation["_id"]),
|
||||
|
|
@ -76,7 +84,7 @@ class AudioLoader(load.LoaderPlugin):
|
|||
project_name, version["parent"], fields=["parent"]
|
||||
)
|
||||
asset = get_asset_by_id(
|
||||
project_name, subset["parent"], fields=["parent"]
|
||||
project_name, subset["parent"], fields=["parent", "data"]
|
||||
)
|
||||
|
||||
source_start = 1 - asset["data"]["frameStart"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue