Append Flag/Prim Path Flag does not take into account transforms leading to the specified prim path
- Dominant language
- Wolfram Language
- Stars
- 905
- Forks
- 223
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 17
Description
**Describe the bug**
When using both the -append flag to a specified -rootPrim with -rootPrimType = xform, the output doesn't take into account the accumulated xform stack leading to the prim, so the transform of the objects being exported are written in world space instead of relative space
**Steps to reproduce**
- Create a null group and transform it somewhere in the scene
- Export as usd
- Create and empty layer and either sublayer the previous file or create a reference to it.
- Create either a transform or a mesh in the scene and transform it into a different position.
- With the cmds.mayaUSDExport command, use the flags append and point the rootPrim to the null group of the previous layer, and export the recently created.
- View the result, the cube should be under the null prim but with the transform stacked instead of the same position.
**Expected behavior**
To the export command to take into account the transform stack leading to the prim and relativize the matrix that is about to be written
**Attachments**

[transforms_append_bug.zip](https://github.com/user-attachments/files/16194190/transforms_append_bug.zip)
**Specs (if applicable):**
- Windows 10
- Maya version [e.g. Maya 2024.2]
- Maya USD commit SHA [release 0.28 and release 0.27]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.