class ImportAudioLoader(load.LoaderPlugin):
"""Import audio."""
product_types = {"shot", "audio"}
representations = {"wav"}
label = "Import Audio"
def load(self, context, name=None, namespace=None, data=None):
wav_file = get_representation_path(context["representation"])
harmony.send(
{"function": func, "args": [context["product"]["name"], wav_file]}
)
product_name = context["product"]["name"]
return harmony.containerise(
product_name,
namespace,
product_name,
context,
self.__class__.__name__
)
def update(self, container, context):
pass
def remove(self, container):
pass