Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maya USD: PrimSpec.referenceList.GetAppliedItems() fails #29

Closed
BigRoy opened this issue Nov 29, 2023 · 0 comments · Fixed by #31
Closed

Maya USD: PrimSpec.referenceList.GetAppliedItems() fails #29

BigRoy opened this issue Nov 29, 2023 · 0 comments · Fixed by #31
Labels
enhancement New feature or request

Comments

@BigRoy
Copy link
Owner

BigRoy commented Nov 29, 2023

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:

            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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant