Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
780 stars 201 forks source link

[MAYA-127755] Can't import a .usdc file into Maya #2871

Open Latios96 opened 1 year ago

Latios96 commented 1 year ago

Describe the bug Importing a .usdc file in Maya does not work. No objects are created in the scene. However, renaming the same file to .usd and importing it does work.

Steps to reproduce

  1. Create a cube, export the cube to a binary USD file and name it cube.usdc (or use the attached cube.usdc)
  2. Go to File -> Import and try to import the cube.usdc file
  3. The scene stays empty
  4. Rename cube.usdc file to cube.usd
  5. Go to File -> Import and try to import the cube.usd file
  6. Importing the cube.usd does work, the cube is created

Expected behavior It should be possible to import a .usdc file the same way as a .usd or .usda file.

Attachments I attached an example .usdc file. The behavior is not specific to this file, any other .usdc file does not work, too. cube.zip

Specs (if applicable):

santosg87 commented 1 year ago

Hi @Latios96!

thank you for reproting this!

after some investigating, i think i am able to reproduce this on our side as well. From my testing, it seems this might be something on the maya side, where it handles file filtering.

for the time being, there are 2 workarounds:

  1. when importing a usdc file, make sure to use the "USD Import" on the "Files of Type" drop down, instead of "all files" - this works as expected for me.
  2. (this one is less desired, probably, but an option alas) change the .usdc format to .usd - USD should handle either file without issues.
Ziethriel commented 1 year ago

For reasons unknown (possibly related to non-manifold geometry or multiple root level nodes) I'm also having issues with some .usdc files exported from Pixyz studio. The number 2 solution by @santosg87 allows me to save the usda files from Pixyz as binary .usd files successfully. Saving some models as .usdc from maya fail to open, but .usd files (in binary form like usdc) work fine. This is still an issue in usd v0.23 shipped with Maya 2024, a fix that would allow saving as usdc files in the future would be nice to avoid confusion with ascii vs binary usd files.