Autodesk / Autodesk/maya-usd

Duplicate Shape Node on Import

Open
#3,837 1 comment 1 reaction 1 assignee Assigned to @santosd View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the bug**
Upon importing a .usd file that contains a structure of:
+ asset_name
+ geo
+ pCone1 (Xform or transform node)
+ pCone1Shape (Mesh or shape node)

the imported hierarchy appears as:
+ asset_name
+ geo
+ pCone1 (Xform or group)
+pCone1Shape (Xform or transform node)
+ pConeShape1Shape (Mesh or shape node)

this is when exporting you do NOT enable 'Merge Transform and Shape Nodes' which in our case (and the case of blender usd export for example) does not do.

**Steps to reproduce**
1. Create the structure above using groups and a pCone1
2. Select hierarchy and go File > Export Selection, do NOT enable 'Merge Transform and Shape Nodes'.
3. File > Import your .usd file

**Expected behavior**
I think the usd importer may require the inverse option of the exporters 'Merge Transform and Shape Nodes'. Allowing it to know that the `def Mesh "pConeShape1"` should just become the shape node for the `def Xform "pCone1"` above.

**Attachments**
![maya_duplicate_shapenode](https://github.com/Autodesk/maya-usd/assets/174006343/5818343c-b26d-47c6-b932-812b0d0babc1)

**Specs (if applicable):**
- Windows-10-10.0.19045-SP0 64 Bits
- Maya 2025
- mayaUsdPlugin: 0.27.0

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.