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

Prim parenting issues since maya-usd 0.23 #3237

Closed
jufrantz opened this issue Jul 19, 2023 · 4 comments
Closed

Prim parenting issues since maya-usd 0.23 #3237

jufrantz opened this issue Jul 19, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@jufrantz
Copy link
Contributor

jufrantz commented Jul 19, 2023

Describe the bug

We encounter issues while parenting multiple prims with USD references. It seems to be a regression between maya-usd 0.22 and 0.23.

  • Maya outliner is not refreshed after parenting action.
  • Only the first selected prim is really re-parented.
  • Undo stack is broken after the action.

Also, very similar problems occur with group command / Ctlr+G. I can file another issue if needed.

Steps to reproduce

  • In attached maya-usd-23_parenting_issues.zip, open maya scene scene.ma.

    • scene.ma contains a mayaUsdProxyShape created from scene.usd layer.
    • scene.usd defines a simple hierarchy with multiple references to asset.usd.
  • Select ufe items in this order /World/Group1/Asset1 and /World/Group1/Asset2 (both referencing asset.usd) and /World/Group2 (the wanted parent).

  • Click on menu Edit/Parent or use shortcut P

  • Notice that

    • Maya outliner is out of date, you need to collapse/expand Group1 and World to see the new parenting.
    • Asset2 was not parented, parent action was only applied to first selected prim Asset1.
    • Next undo will issue this error
// Error: line 1: Undo was not successful.  Damaged undo/redo information has been flushed.
  • The bug can also be reproduced executing following script
import maya.cmds
maya.cmds.parent(
    "|usdProxy|usdProxyShape,/World/Group1/Asset1", 
    "|usdProxy|usdProxyShape,/World/Group1/Asset2",
    "|usdProxy|usdProxyShape,/World/Group2"
)

Specs (if applicable):

  • Linux CentOS 7.8
  • gcc 9.3.1
  • Maya 2023.3
  • Maya USD 0.23.0
  • Pixar USD 22.11
@jufrantz jufrantz added the bug Something isn't working label Jul 19, 2023
@santosd santosd assigned santosd and unassigned santosg87 Jul 20, 2023
@santosd
Copy link
Collaborator

santosd commented Jul 20, 2023

Hi @jufrantz ,
You are correct this was a regression in Maya USD 0.23.0, however, the issue was resolved in Maya USD 0.24.0 our most current release. I tried it out in Maya 2023.3 and I was able to verify that the issue no longer happens in Maya 0.24.0. Please give it a try and let me know if you have any questions.
-David

@jufrantz
Copy link
Contributor Author

Hello @santosd.

Good to know. Thank you for the information and for testing this case. We'll try 0.24 soon.

A bit unrelated, but to anticipate the way we would deploy next version : maya-usd 0.24 dropped support for Maya 2020. Is it the case even if we build maya-usd from sources. Or does it only mean that the prebuilt release packages are no longer targeting 2020 ? Sorry if I missed this information elsewhere.

Thank you once again,
Julien

@seando-adsk
Copy link
Collaborator

You should be able to build your own 0.24 targeting Maya 2020 as support for it was removed after we released 0.24. Future releases will require at least Maya 2022.

Sean

@santosd
Copy link
Collaborator

santosd commented Jul 21, 2023

I will go ahead and close this out since the issue is no longer in 0.24.0, but if you have any further questions on this feel free to reply and reopen or if a new issue comes up feel free to log it.

@santosd santosd closed this as completed Jul 21, 2023
@neilh-adsk neilh-adsk moved this to Done in maya-usd Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants