fux bug, get project name from context

This commit is contained in:
MustafaJafar 2024-05-10 12:04:33 +03:00
parent 389288a506
commit fa8b4e808b

View file

@ -32,7 +32,7 @@ class ExtractHDA(publish.Extractor):
tool_name = hou.shelves.defaultToolName(
hda_def.nodeTypeCategory().name(), hda_def.nodeTypeName())
hou.shelves.tool(tool_name).setToolLocations(
("AYON/{}".format(self.project_name),))
("AYON/{}".format(instance.context.data["projectName"]),))
if "representations" not in instance.data:
instance.data["representations"] = []