Autodesk / Autodesk/maya-usd

[MAYA-126188] Saving the file discards usd selection

Open
#2,650 2 comments 0 reactions 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**
When using File->Save As or File->Save, it discards the USD selection.

If a native maya node is selected, it maintains this selection.

**Steps to reproduce**
Steps to reproduce the behavior:
1. Open `Kitchen_Set`
2. Navigate to Create -> Polygon Primitives -> Sphere
3. Select `|Kitchen_set|Kitchen_setShape,/Kitchen_set/Arch_grp/Kitchen_1`
4. Translate the `Kitchen_1` (make an edit that needs to be saved)
5. Select `Kitchen_1` and `pSphere1`
6. Navigate to File->Save (follow the prompts if needed)

Notice that the `Kitchen_1` is no longer selected. However, saving maintains the native maya selection.

**Expected behavior**
We would expect the same behaviour as native maya nodes where the selection is maintained when saving.

**Attachments**
![save_selection](https://user-images.githubusercontent.com/12554015/195689794-f3476b03-46ef-434a-b524-b4f0597329be.gif)

**Specs (if applicable):**
- Linux
- maya2023.2
- Maya USD commit SHA [dev at 302f393]
- Pixar USD commit SHA [dev at 60ed06c]

Pixar Internal JIRA MAYA-3507

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.