Autodesk / Autodesk/maya-usd

NurbsCurve cannot be exported properly along with UsdSkel

Open
#3,033 4 comments 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the bug**

Hi,

When we are doing UsdSkel testing and found that if the NurbsCurve is attached to the joint in Maya, the exported USD file seems broken.

I have attached the test Maya scene [usdskel_nurbs_curve_test.ma](https://github.com/Autodesk/maya-usd/files/11295696/usdskel_nurbs_curve_test.ma.txt) (renamed the extension to ".txt").

The skeleton setup in Maya is like this:
![usdskel_nurbs_setup|width=50px](https://user-images.githubusercontent.com/1593576/233633536-557bba4b-5e4a-4976-b5c2-75fa7864fc39.png)

```
'group1' -> the skeleton root
'joint1|joint3' -> nurbsCircleShape1 [nurbsCurve]
'joint1|joint2' -> pSphereShape1 [mesh]
```
And the exported USD file content of the NurbsCurve does not have any skeleton attributes comparing with the sphere mesh:

![usdskel_nurbs_export_missing_skel_attributes](https://user-images.githubusercontent.com/1593576/233634237-54daa38a-189e-41b8-a6d0-8784aff37540.png)

As a comparison if both of the joints are meshes like this (replaced with a cube mesh):

![usdskel_mesh_setup](https://user-images.githubusercontent.com/1593576/233634532-b91e5bb5-86e6-4768-a25d-f1e9d6c306a2.png)

And we got the expected skeleton attributes in USD file:
![usdskel_mesh_export](https://user-images.githubusercontent.com/1593576/233634757-c5b67006-989d-4cd8-9ea2-ef79e3de849e.png)

That seems like a bug that only **mesh** is supported.

**Steps to reproduce**
Steps to reproduce the behavior:
1. Launch Maya and load the attached scene file
2. Click 'File' -> 'Export All'
3. In the export dialog, enable option "NURBS Curves", set "Skeletons" and "Skin Clusters" to be "All (Automatically Create SkelRoots)"
4. Export and see the USD content

**Expected behavior**

The export NurbsCurver should have the correct skeleton attributes.

**Attachments**
[usdskel_nurbs_curve_test.ma](https://github.com/Autodesk/maya-usd/files/11295696/usdskel_nurbs_curve_test.ma.txt)

**Specs (if applicable):**
- OS & version: CentOS 7.8
- Compiler & version: gcc 6.3
- Maya version: Maya 2022.4 / Maya 2023.2
- Maya USD: Offical v0.23.0 / v0.22.0 / v0.21.0
- Pixar USD: Official v0.21.8 / v0.22.11

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.