Skip to content

LOOKDEVX-6063 - Move 'Unassign Material' and 'Add new Material' to UsdContextOps - #4869

Open
couetj-adsk wants to merge 1 commit into
devfrom
couetj/LOOKDEVX-6063/move-unassign-and-addnew-material-to-usdcontextops
Open

couetj-adsk wants to merge 1 commit into
devfrom
couetj/LOOKDEVX-6063/move-unassign-and-addnew-material-to-usdcontextops

Conversation

@couetj-adsk

@couetj-adsk couetj-adsk commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Work for LOOKDEVX-6063 / LOOKDEVX-6063

  • LOOKDEVX-6063 - Move 'Unassign Material' to UsdContextOps
  • LOOKDEVX-6064 - Move 'Add new Material' to UsdContextOps
  • Aldo move 'Assign Material to Selection' to UsdContextOps

Comment thread lib/mayaUsd/base/stringResources.h Resolved
}
#ifdef UFE_V4_FEATURES_AVAILABLE
} else if (itemPath[0] == kAddNewMaterialItem) {
addNewMaterialItems(itemPath, items);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

items.emplace_back(Ufe::ContextItem::kSeparator);
materialSeparatorsAdded = true;
}
items.emplace_back(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

#ifdef UFE_V4_FEATURES_AVAILABLE
} else if (itemPath.size() == 3u && itemPath[0] == kAddNewMaterialItem) {
return std::make_shared<UsdUfe::UsdUndoInsertChildAndSelectCommand>(
UsdUfe::UsdUndoAddNewMaterialCommand::create(_item, itemPath[2]));

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

items.emplace_back(Ufe::ContextItem::kSeparator);
materialSeparatorsAdded = true;
}
items.emplace_back(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

} else if (itemPath[0] == UsdMxUpgradeStageCmd::kCommandString) {
return UsdMxUpgradeStageCmd::create(path());
#endif
} else if (itemPath[0] == UsdUfe::UnbindMaterialUndoableCommand::commandName) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

}
}
#endif
items.emplace_back(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@couetj-adsk
couetj-adsk marked this pull request as ready for review November 23, 2026 14:42
@couetj-adsk couetj-adsk self-assigned this Nov 23, 2026
@seando-adsk seando-adsk added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Nov 23, 2026
frohnej-adsk
frohnej-adsk previously approved these changes Nov 24, 2026

@frohnej-adsk frohnej-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.

Awesome, LGTM!

Comment thread lib/mayaUsd/base/stringResources.h Resolved
Comment thread lib/usdUfe/ufe/UsdContextOps.cpp Resolved
Comment thread test/lib/ufe/testContextOps.py Resolved
Comment thread test/lib/ufe/testContextOps.py Resolved
frohnej-adsk
frohnej-adsk previously approved these changes Nov 27, 2026
…ssign Material to Selection' into UsdContextOps
@couetj-adsk
couetj-adsk force-pushed the couetj/LOOKDEVX-6063/move-unassign-and-addnew-material-to-usdcontextops branch from 3702194 to d2151a5 Compare November 27, 2026 15:33
@couetj-adsk couetj-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Nov 27, 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 ufe-usd Related to UFE-USD plugin in Maya-Usd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants