mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
Make listConnections call for getting shaders more explicit
This commit is contained in:
parent
959e35b3b4
commit
4e760c593d
1 changed files with 4 additions and 0 deletions
|
|
@ -553,6 +553,10 @@ def get_shader_assignments_from_shapes(shapes):
|
|||
|
||||
# Get unique shading groups for the shape
|
||||
shading_groups = cmds.listConnections(shape,
|
||||
source=False,
|
||||
destination=True,
|
||||
plugs=False,
|
||||
connections=False,
|
||||
type="shadingEngine") or []
|
||||
shading_groups = list(set(shading_groups))
|
||||
for shading_group in shading_groups:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue