Skip to content

EMSUSD-3660 create USD ref at stage root - #4700

Merged
antonkhelou merged 2 commits into
devfrom
bailp/EMSUSD-3660/create-ref-less-clicks
Aug 18, 2026
Merged

EMSUSD-3660 create USD ref at stage root#4700
antonkhelou merged 2 commits into
devfrom
bailp/EMSUSD-3660/create-ref-less-clicks

Conversation

@pierrebai-adsk

Copy link
Copy Markdown
Collaborator
  • Added new menu item in context op handler. The stage proxy shape context menu now shows a "USD" submenu (Layer Editor, Path Editor, "Add Reference...".
  • Proxy shape transform node's Outliner context menu now nests "USD Layer Editor" and "USD Path Editor" under a "USD" submenu (with cleanup if neither item is available).
  • Added support to create a USD reference at the stage root in UsdUndoAddRefOrPayloadToNewPrimCommand.
  • Added unit test.

- Added new menu item in context op handler. The stage proxy shape context menu now shows a "USD" submenu (Layer Editor, Path Editor, "Add Reference...".
- Proxy shape transform node's Outliner context menu now nests "USD Layer Editor" and "USD Path Editor" under a "USD" submenu (with cleanup if neither item is available).
- Added support to create a USD reference at the stage root in `UsdUndoAddRefOrPayloadToNewPrimCommand`.
- Added unit test.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds stage-root USD reference creation and reorganizes USD context-menu actions.

Changes:

  • Groups stage and Outliner USD actions into submenus.
  • Supports references beneath the USD pseudo-root.
  • Adds command-level undo/redo coverage.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/lib/ufe/testReferenceCommands.py Tests stage-root reference creation.
plugin/adsk/scripts/mayaUsdMenu.mel Groups Outliner USD editor actions.
lib/usdUfe/ufe/UsdUndoAddRefOrPayloadToNewPrimCommand.cpp Handles pseudo-root parent paths.
lib/mayaUsd/ufe/MayaUsdContextOps.cpp Adds the gateway USD submenu and reference action.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

items.emplace_back(kAssetResolverDialogItem, kAssetResolverDialogLabel);
// Stage root: group all USD-level items (Layer Editor, Path Editor, Add
// Reference...) under a single "USD" submenu.
items.emplace_back(kUSDMenuItem, kUSDMenuLabel, Ufe::ContextItem::kHasChildren);
The test cannot call the menu because the menu opens a dialog.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@pierrebai-adsk

Copy link
Copy Markdown
Collaborator Author
image

@AramAzhari-adsk AramAzhari-adsk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,

A comment for a followup PR, I think by the same logic the Add New Prim should also be moved under USD menu and that we should remove the USD from start of the Layer Editor and Path Editor now that they are directly under USD menu item.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 18, 2026
@pierrebai-adsk

Copy link
Copy Markdown
Collaborator Author

Yes, Scott asked to moved all items, will be done in next PR

@antonkhelou
antonkhelou merged commit 10c1f45 into dev Aug 18, 2026
14 checks passed
@antonkhelou
antonkhelou deleted the bailp/EMSUSD-3660/create-ref-less-clicks branch August 18, 2026 17:38
@seando-adsk seando-adsk added the workflows Related to in-context workflows label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants