Autodesk / maya-usd

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

Export selection with USD Export do not work if only a skeleton is selectedand it breaks any future export selection #3053

Open ChristophePlourde opened 1 year ago

ChristophePlourde commented 1 year ago

Describe the bug Hello! There is an issue with "Export selection" when the only selected object is a joint. It even breaks the following export selections, even if you delete the joint and try to export the node only. The repro steps are simple and will give all the details needed.

Steps to reproduce Steps to reproduce the behavior:

  1. Open a new scene
  2. Create an empty group
  3. Create a joint and put it into the group like this image
  4. Select the joint
  5. Go to File -> Export Selection
  6. Choose the option "USD Export" for "Files of types:"
  7. Click on export.
  8. Notice a pop-up saying "Nothing is selected". The following picture show that the joint is clearly selected. image
  9. Delete the joint
  10. Select the transform node "null1"
  11. Do step 5 to 7, the pop-up is there again. Note that, if we do select null1 and export the selection before creating joint1, we can export. So, we seem to be stuck in a broken state when we first try to export the skeleton only.

Expected behavior When selecting the root joint, the skeleton should be exported. Also, if it fails, it shouldn't break the scene for any future export selection.

Attachments See repro steps

Specs (if applicable):

santosg87 commented 1 year ago

Hi @ChristophePlourde thank you for reporting this. I have tried a few different workflows around export and a few different versions and operating systems, but i am not able to reproduce this. my export happens as expected. would you have a sample file where that is happening for you that you can share?

ChristophePlourde commented 1 year ago

Hello! Here is a simple scene where it happens. I also share the options I have for the export, in case it helps with the repro. image image skeleton-selection-bug.zip

wallworm commented 1 year ago

Thanks for reporting and sharing your file. We will be looking into improving our USDSkel support in upcoming releases.

ChristophePlourde commented 1 year ago

Hello! I found by accident some additional information by reproducing the issue on a bigger scene. So, I found the cause. When using export selection, if you have the "joint tool" selected, it will give you this message. image If you change it for the "select tool", then you don't have the issue anymore. image So, this means that the issue is with the "Joint Tool" and possibly some other tools, but it also means that there is a workaround.

maya-usd-git-sync[bot] commented 1 year ago

Issue synced internally to EMSUSD-776