mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
check if there is the name endswith 'Main' in the renderlayer
This commit is contained in:
parent
16c617deeb
commit
4944f95670
1 changed files with 5 additions and 0 deletions
|
|
@ -180,6 +180,11 @@ class CollectUpstreamInputs(pyblish.api.InstancePlugin):
|
|||
return copy.deepcopy(scene_containers)
|
||||
else:
|
||||
# Get the members of the layer
|
||||
renderlayer = next((i for i in cmds.ls(type='renderLayer')
|
||||
if i.endswith(renderlayer)), None)
|
||||
if renderlayer is None:
|
||||
return copy.deepcopy(scene_containers)
|
||||
|
||||
members = cmds.editRenderLayerMembers(renderlayer,
|
||||
query=True,
|
||||
fullNames=True) or []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue