Hound fixes

This commit is contained in:
Simone Barbieri 2022-04-29 09:43:50 +01:00
parent af3c8d01fd
commit 523a52c92f
3 changed files with 6 additions and 4 deletions

View file

@ -53,7 +53,7 @@ def start_rendering():
project = os.environ.get("AVALON_PROJECT")
anatomy = Anatomy(project)
root = anatomy.roots['renders']
except:
except Exception:
raise Exception("Could not find render root in anatomy settings.")
render_dir = f"{root}/{project}"

View file

@ -853,7 +853,8 @@ class LayoutLoader(plugin.Loader):
if visibility_track:
sections = visibility_track.get_sections()
for ss in sections:
if unreal.Name(f"{container.get('asset')}_map") in ss.get_level_names():
if (unreal.Name(f"{container.get('asset')}_map")
in ss.get_level_names()):
visibility_track.remove_section(ss)
# Update visibility sections indexes.
i = -1

View file

@ -84,8 +84,9 @@ class CollectRenderInstances(pyblish.api.InstancePlugin):
project = os.environ.get("AVALON_PROJECT")
anatomy = Anatomy(project)
root = anatomy.roots['renders']
except:
raise Exception("Could not find render root in anatomy settings.")
except Exception:
raise Exception(
"Could not find render root in anatomy settings.")
render_dir = f"{root}/{project}/{s.get('output')}"
render_path = Path(render_dir)