Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: Do not pass set to maya commands (fixes support for older maya versions) #2932

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openpype/hosts/maya/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ def get_container_members(container):

members = cmds.sets(container, query=True) or []
members = cmds.ls(members, long=True, objectsOnly=True) or []
members = set(members)
all_members = set(members)

# Include any referenced nodes from any reference in the container
# This is required since we've removed adding ALL nodes of a reference
Expand All @@ -1530,9 +1530,9 @@ def get_container_members(container):
reference_members = cmds.ls(reference_members,
long=True,
objectsOnly=True)
members.update(reference_members)
all_members.update(reference_members)

return members
return list(all_members)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem to work now, tested in Maya2018.7.
Both asset loading and look assignment work!



# region LOOKDEV
Expand Down