It seems that the USD version in Maya - even in a recent release - has some API incompatibilities with functions we're now using. In particular this code
It seems that PrimSpec.referenceList.GetAppliedItems() does not exist in the USD api that comes with Maya, likely due to an older version of USD being used.
applied = prim_spec.referenceList.ApplyEditsToList([])
for reference in applied:
references.append(reference)
applied = prim_spec.payloadList.ApplyEditsToList([])
for payload in applied:
payloads.append(payload)
So that we can be a bit more backwards compatible.
Issue
It seems that the USD version in Maya - even in a recent release - has some API incompatibilities with functions we're now using. In particular this code
It seems that
PrimSpec.referenceList.GetAppliedItems()
does not exist in the USD api that comes with Maya, likely due to an older version of USD being used.It might be worth looking into other options to mimic the logic of
GetAppliedItems
.It seems that for example this logic does work:
So that we can be a bit more backwards compatible.