mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
skip invalid attributes
This commit is contained in:
parent
3fd6e8fb29
commit
4fab9dadda
1 changed files with 7 additions and 1 deletions
|
|
@ -277,7 +277,13 @@ class CollectLook(pyblish.api.InstancePlugin):
|
|||
if looksets:
|
||||
for look in looksets:
|
||||
for at in shaderAttrs:
|
||||
con = cmds.listConnections("{}.{}".format(look, at))
|
||||
try:
|
||||
con = cmds.listConnections("{}.{}".format(look, at))
|
||||
except ValueError:
|
||||
# skip attributes that are invalid in current
|
||||
# context. For example in the case where
|
||||
# Arnold is not enabled.
|
||||
continue
|
||||
if con:
|
||||
materials.extend(con)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue