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

Mesh Subsets not created when using Duplicate as USD Data #3525

Closed
johnhable opened this issue Dec 15, 2023 · 2 comments
Closed

Mesh Subsets not created when using Duplicate as USD Data #3525

johnhable opened this issue Dec 15, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@johnhable
Copy link

Describe the bug
When converting a mesh with multiple materials to USD, subsets are not getting created.

Steps to reproduce
Steps to reproduce the behavior:

  1. Create a mesh (such as a sphere)
  2. Apply a material to the mesh (in this case, a new USDPreview material)
  3. Select several polys
  4. Apply a different material to those polys.
  5. Right click, and select Duplicate as USD data to add to a stage.

Expected behavior
The mesh should appear in the stage with two subsets.

Attachments
Here is a dropbox linke to the .mb file, just before applying to the stage.
https://www.dropbox.com/scl/fi/1iy2ydgsv5oaq95vba6pe/sphere-test.mb?rlkey=bql7um2j0tzz3gv9nf1q0zeff&dl=0

Here is the exported .usd file.
https://www.dropbox.com/scl/fi/heoycbkzbr1q3kskz4k6q/sphere-test.usd?rlkey=okgwgzhg033pmunrfxudm4tlw&dl=0

Specs (if applicable):

  • Windows 11
    --- using version included with released Maya 2024

Additional context
Note that if I export the scene to usd, and then import that file from the USD Layer Editor, the file loads as expected.

Here is a screenshot of the scene after using convert to USD data from the right-click menu.
convert-from-maya-data

Here is a screenshot of the scene after exporting to usd and importing again as a USD layer.
import-from-stage

@johnhable johnhable added the bug Something isn't working label Dec 15, 2023
@github-project-automation github-project-automation bot moved this to Needs triage in maya-usd Dec 15, 2023
@wongt-adsk wongt-adsk assigned santosd and unassigned santosg87 Dec 19, 2023
@santosd
Copy link
Collaborator

santosd commented Dec 20, 2023

Hello @johnhable
Thank you for reporting this issue. I took a look and it seems that what is going on is that the Material option in your Duplicate as USD Data is not selected. If you select a Material option such as USD Preview Surface and then apply the settings and try again you should get the same as when you export:

2023-12-20.14-08-29.mp4

@johnhable
Copy link
Author

Thanks for the info, and apologies for the late reply (holidays). That fixed it, and I'll close it out.

@github-project-automation github-project-automation bot moved this from Needs triage to Done in maya-usd Dec 28, 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

3 participants