Skip to content

LOOKDEVX-5958 - Use ufe api for material assigment - #4734

Open
couetj-adsk wants to merge 1 commit into
devfrom
couetj/LOOKDEVX-5958/use-ufe-api-for-material-assignment
Open

couetj-adsk wants to merge 1 commit into
devfrom
couetj/LOOKDEVX-5958/use-ufe-api-for-material-assignment

Conversation

@couetj-adsk

@couetj-adsk couetj-adsk commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

LOOKDEVX-5958 - Use ufe api for material assigment

Refactoring of material-assignment menu logic into a shared UsdUfe::MaterialUtils API and wires MayaUSD UFE context ops to call it directly instead of relying on MEL.

  • New UsdUfe::MaterialUtils that implements the operations used by material assignment menus:
    • getMaterialsFromRenderers
    • getMaterialsInStage
    • canAssignMaterialToNodeType
  • MayaUsdContextOps calls UsdUfe::MaterialUtils for “Assign New Material”, “Assign Existing Material”, and material-menu visibility, in place of MGlobal::executeCommand calls to mayaUsdGetMaterialsFromRenderers, mayaUsdGetMaterialsInStage, and mayaUsdMaterialBindings.
  • Simplified adskMaterialCommands to thin MEL wrappers over the same shared implementation
  • Python bindings (wrapMaterialUtils.cpp)

@couetj-adsk
couetj-adsk force-pushed the couetj/LOOKDEVX-5958/use-ufe-api-for-material-assignment branch from 735364c to 520730e Compare September 15, 2026 19:34
@couetj-adsk
couetj-adsk marked this pull request as ready for review September 15, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant