diff --git a/pype/plugins/global/publish/extract_burnin.py b/pype/plugins/global/publish/extract_burnin.py index 7668eafd2a..c151752c8f 100644 --- a/pype/plugins/global/publish/extract_burnin.py +++ b/pype/plugins/global/publish/extract_burnin.py @@ -193,6 +193,7 @@ class ExtractBurnin(pype.api.Extractor): self.log.debug("Output: {}".format(output)) repre_update = { + "anatomy_template": "render", "files": movieFileBurnin, "name": repre["name"], "tags": [x for x in repre["tags"] if x != "delete"] diff --git a/pype/plugins/maya/create/create_yeti_cache.py b/pype/plugins/maya/create/create_yeti_cache.py index aaa94ce01d..c541e1a091 100644 --- a/pype/plugins/maya/create/create_yeti_cache.py +++ b/pype/plugins/maya/create/create_yeti_cache.py @@ -11,6 +11,7 @@ class CreateYetiCache(avalon.maya.Creator): label = "Yeti Cache" family = "yeticache" icon = "pagelines" + defaults = ["Main"] def __init__(self, *args, **kwargs): super(CreateYetiCache, self).__init__(*args, **kwargs) diff --git a/pype/plugins/maya/create/create_yeti_rig.py b/pype/plugins/maya/create/create_yeti_rig.py index c061084dd7..67bc2f29c8 100644 --- a/pype/plugins/maya/create/create_yeti_rig.py +++ b/pype/plugins/maya/create/create_yeti_rig.py @@ -10,6 +10,7 @@ class CreateYetiRig(avalon.maya.Creator): label = "Yeti Rig" family = "yetiRig" icon = "usb" + defaults = ["Main"] def process(self): diff --git a/pype/plugins/maya/load/load_look.py b/pype/plugins/maya/load/load_look.py index c31b7c5fe0..abbcb71df0 100644 --- a/pype/plugins/maya/load/load_look.py +++ b/pype/plugins/maya/load/load_look.py @@ -18,17 +18,17 @@ class LookLoader(pype.maya.plugin.ReferenceLoader): def process_reference(self, context, name, namespace, options): """ - Load and try to assign Lookdev to nodes based on relationship data + Load and try to assign Lookdev to nodes based on relationship data. + Args: name: namespace: context: - data: + options: Returns: """ - import maya.cmds as cmds from avalon import maya diff --git a/pype/plugins/maya/load/load_reference.py b/pype/plugins/maya/load/load_reference.py index 797933300c..abd18d9bc5 100644 --- a/pype/plugins/maya/load/load_reference.py +++ b/pype/plugins/maya/load/load_reference.py @@ -65,8 +65,10 @@ class ReferenceLoader(pype.maya.plugin.ReferenceLoader): roots.add(pm.PyNode(node).getAllParents()[-2]) except: # noqa: E722 pass - for root in roots: - root.setParent(world=True) + + if family not in ["layout", "setdress", "mayaAscii"]: + for root in roots: + root.setParent(world=True) groupNode.zeroTransformPivots() for root in roots: diff --git a/pype/plugins/maya/load/load_yeti_rig.py b/pype/plugins/maya/load/load_yeti_rig.py index a3e03e8a6c..11922034d6 100644 --- a/pype/plugins/maya/load/load_yeti_rig.py +++ b/pype/plugins/maya/load/load_yeti_rig.py @@ -21,7 +21,8 @@ class YetiRigLoader(pype.maya.plugin.ReferenceLoader): icon = "code-fork" color = "orange" - def process_reference(self, context, name=None, namespace=None, data=None): + def process_reference( + self, context, name=None, namespace=None, options=None): import maya.cmds as cmds from avalon import maya diff --git a/pype/plugins/maya/publish/collect_look.py b/pype/plugins/maya/publish/collect_look.py index 7a5fea776c..1a27ffe5ff 100644 --- a/pype/plugins/maya/publish/collect_look.py +++ b/pype/plugins/maya/publish/collect_look.py @@ -250,7 +250,8 @@ class CollectLook(pyblish.api.InstancePlugin): # Remove sets that didn't have any members assigned in the end # Thus the data will be limited to only what we need. - if not sets[objset]["members"]: + self.log.info("objset {}".format(sets[objset])) + if not sets[objset]["members"] or (not objset.endswith("SG")): self.log.info("Removing redundant set information: " "%s" % objset) sets.pop(objset, None) diff --git a/pype/plugins/maya/publish/extract_yeti_rig.py b/pype/plugins/maya/publish/extract_yeti_rig.py index 70a509564f..98e7271d1a 100644 --- a/pype/plugins/maya/publish/extract_yeti_rig.py +++ b/pype/plugins/maya/publish/extract_yeti_rig.py @@ -147,7 +147,7 @@ class ExtractYetiRig(pype.api.Extractor): nodes = instance.data["setMembers"] resources = instance.data.get("resources", {}) with disconnect_plugs(settings, members): - with yetigraph_attribute_values(destination_folder, resources): + with yetigraph_attribute_values(resources_dir, resources): with maya.attribute_values(attr_value): cmds.select(nodes, noExpand=True) cmds.file(maya_path, diff --git a/pype/plugins/nuke/publish/extract_thumbnail.py b/pype/plugins/nuke/publish/extract_thumbnail.py index 88ea78e623..362625c2f5 100644 --- a/pype/plugins/nuke/publish/extract_thumbnail.py +++ b/pype/plugins/nuke/publish/extract_thumbnail.py @@ -125,6 +125,7 @@ class ExtractThumbnail(pype.api.Extractor): repre = { 'name': name, 'ext': "jpeg", + "outputName": "thumb", 'files': file, "stagingDir": staging_dir, "frameStart": first_frame,