mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
fix error when updating workfile from template with empty scene
This commit is contained in:
parent
01f2c59049
commit
e6cad709cd
1 changed files with 5 additions and 1 deletions
|
|
@ -80,7 +80,11 @@ class MayaTemplateLoader(AbstractTemplateLoader):
|
|||
return [attribute.rpartition('.')[0] for attribute in attributes]
|
||||
|
||||
def get_loaded_containers_by_id(self):
|
||||
containers = cmds.sets('AVALON_CONTAINERS', q=True)
|
||||
try:
|
||||
containers = cmds.sets("AVALON_CONTAINERS", q=True)
|
||||
except ValueError:
|
||||
return None
|
||||
|
||||
return [
|
||||
cmds.getAttr(container + '.representation')
|
||||
for container in containers]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue