Update openpype/hosts/maya/plugins/load/load_audio.py

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Toke Jepsen 2023-09-14 15:39:00 +01:00 committed by GitHub
parent a4b1797b2a
commit 2c2b5a3505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,7 @@ class AudioLoader(load.LoaderPlugin):
cmds.setAttr("{}.filename".format(audio_node), path, type="string")
if activate_sound:
# maya by default deactivates it from timeline on file change
cmds.timeControl(
mel.eval("$gPlayBackSlider=$gPlayBackSlider"),
edit=True,