diff --git a/avalon/maya/workio.py b/avalon/maya/workio.py index 9096308cc..708756372 100644 --- a/avalon/maya/workio.py +++ b/avalon/maya/workio.py @@ -45,7 +45,11 @@ def open_file(filepath): # Load reference that is loaded in the scene file for ref_node in ref_nodes_to_load: - cmds.file(loadReferenceDepth="asPrefs", loadReference=ref_node) + try: + cmds.file(loadReferenceDepth="asPrefs", loadReference=ref_node) + except Exception as e: + print("avalon.workio: Reference file failed: %s." % ref_node) + print(e) except Exception as e: try: diff --git a/avalon/tools/sceneinventory/app.py b/avalon/tools/sceneinventory/app.py index f9b796b63..e11cc1280 100644 --- a/avalon/tools/sceneinventory/app.py +++ b/avalon/tools/sceneinventory/app.py @@ -805,7 +805,7 @@ def _on_accept(self): self.log.error("Nothing selected") return - for item in self._items: + for item in sorted(self._items): try: switch_item(item, asset_name=asset,