Fix file path fetching from context.

This commit is contained in:
Toke Stuart Jepsen 2023-09-18 08:49:51 +01:00
parent 8310cfd9cc
commit d38cf82589

View file

@ -27,7 +27,7 @@ class AudioLoader(load.LoaderPlugin):
start_frame = cmds.playbackOptions(query=True, min=True)
sound_node = cmds.sound(
file=context["representation"]["data"]["path"], offset=start_frame
file=self.filepath_from_context(context), offset=start_frame
)
cmds.timeControl(
mel.eval("$gPlayBackSlider=$gPlayBackSlider"),