mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
layout publish more than one container issue
This commit is contained in:
parent
09be994ca1
commit
0dff5e86c5
1 changed files with 2 additions and 3 deletions
|
|
@ -37,13 +37,12 @@ class ExtractLayout(publish.Extractor):
|
|||
project_container = self.project_container
|
||||
container_list = cmds.ls(project_container)
|
||||
assert len(container_list) == 1, \
|
||||
"No project container found for {} " \
|
||||
"Please create instance with loaded asset".format(asset)
|
||||
"Please create instance with loaded asset"
|
||||
containers = cmds.sets(project_container, query=True)
|
||||
for con in containers:
|
||||
if "_CON" not in con:
|
||||
assert containers == [], \
|
||||
"No container found for {}".format(asset)
|
||||
"No container found for {}".format(asset)
|
||||
container = con
|
||||
|
||||
representation_id = cmds.getAttr(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue