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

Materials Duplicating When Using "Edit As Maya Data" #3547

Open
jimwatson-ta opened this issue Jan 9, 2024 · 2 comments
Open

Materials Duplicating When Using "Edit As Maya Data" #3547

jimwatson-ta opened this issue Jan 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jimwatson-ta
Copy link

Describe the bug
After clicking "Edit As Maya Data" on a UsdMesh, it duplicates the materials in the scene if a material of the same name exists.

Steps to reproduce
Steps to reproduce the behavior:

  1. Create a cube in Maya
  2. Assign one lambert material to the top face and one material to the other faces of the cube.
  3. Create a new USD layer.
  4. Duplicate the Cube as USD data into the stage.
  5. Edit the USD Cube as Maya Data.
  6. See duplicate materials assigned on the mesh and new materials in the Hypershade.

Expected behavior
When hitting the button to "Edit As Maya Data," if the linked materials already exist in the scene, assign that material to the mesh.

Specs (if applicable):

  • Windows 10
  • Codeless Schemas
  • Maya 2024.2
  • MayaUSD 0.26.0
@jimwatson-ta jimwatson-ta added the bug Something isn't working label Jan 9, 2024
@wallworm
Copy link
Collaborator

Thank you for the input. What about the case where the material in the USD is actually more updated than the scene material? Do you have a proposal on handling which materials (Keep Scene Materials, Update Scene Materials or Make Duplicate)?

@jimwatson-ta
Copy link
Author

Good call. I would prefer if the scene materials would be overridden, but I can also see that as a useful option on the Edit As Maya Data Options menu.

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
None yet
Development

No branches or pull requests

3 participants