mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
setSoundDisplay was not loaded, so better to timeControl
This commit is contained in:
parent
e9ee9463f1
commit
bb828cb828
1 changed files with 6 additions and 1 deletions
|
|
@ -17,6 +17,11 @@ class AudioLoader(api.Loader):
|
|||
sound_node = cmds.sound(
|
||||
file=context["representation"]["data"]["path"], offset=start_frame
|
||||
)
|
||||
mel.eval("setSoundDisplay {} 1".format(sound_node))
|
||||
cmds.timeControl(
|
||||
mel.eval("$tmpVar=$gPlayBackSlider"),
|
||||
edit=True,
|
||||
sound=sound_node,
|
||||
displaySound=True
|
||||
)
|
||||
|
||||
return [sound_node]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue