Skip to content

EMSUSD-3340 support drag-and-drop material in AE - #4671

Merged
antonkhelou merged 2 commits into
devfrom
bailp/EMSUSD-3340/ae-DnD-material
Jul 21, 2026
Merged

EMSUSD-3340 support drag-and-drop material in AE#4671
antonkhelou merged 2 commits into
devfrom
bailp/EMSUSD-3340/ae-DnD-material

Conversation

@pierrebai-adsk

Copy link
Copy Markdown
Collaborator

New drag-and-drop text field:

  • Added DragAndDropTextField class to make a MEL textField support drag-and-drop of text.
  • The class supports validation of the dropped value.
  • The class has callbacks for user text changes and drag-and-drop changes.

Enhance AE material UI:

  • Use the drag-and-drop text filed in the material custom control.
  • Added AssignedMaterialUI to replace TextField for clarity.
  • Added undo label to metadata UI.
  • Added goto-prim button for all fields with prim paths.

Edit restrictions for material commands:

  • Added edit restriction enforcement in the bind, unbind and strength commands.
  • Made the unbind command not unbind collections. (We're not managing collections.)
  • Added unit tests for restrictions.

@pierrebai-adsk pierrebai-adsk added adsk Related to Autodesk plugin ufe-usd Related to UFE-USD plugin in Maya-Usd materials labels Jul 20, 2026
@pierrebai-adsk pierrebai-adsk self-assigned this Jul 20, 2026
@pierrebai-adsk

Copy link
Copy Markdown
Collaborator Author

Without LookdevX:
image

@pierrebai-adsk

Copy link
Copy Markdown
Collaborator Author

With LookdevX:
image

@pierrebai-adsk
pierrebai-adsk force-pushed the bailp/EMSUSD-3340/ae-DnD-material branch from 5c93d02 to fc302fe Compare July 20, 2026 20:27
New drag-and-drop text field:
- Added `DragAndDropTextField` class to make a MEL textField support drag-and-drop of text.
- The class supports validation of the dropped value.
- The class has callbacks for user text changes and drag-and-drop changes.

Enhance AE material UI:
- Use the drag-and-drop text filed in the material custom control.
- Added `AssignedMaterialUI` to replace `TextField` for clarity.
- Added undo label to metadata UI.
- Added goto-prim button for all fields with prim paths.
- Don't create the graph buttons when there is no LookdevX.

Edit restrictions for material commands:
- Added edit restriction enforcement in the bind, unbind and strength commands.
- Made the unbind command not unbind collections. (We're not managing
  collections.)
- Added unit tests for restrictions.
- Edit-routing for the material binding commands as property routing for
  the property "material:binding".
- We don't distinguish benteen purpose and strength for routing to avoid
  having too many different routings.
@pierrebai-adsk
pierrebai-adsk force-pushed the bailp/EMSUSD-3340/ae-DnD-material branch from fc302fe to 6a4e52b Compare July 20, 2026 20:43
@pierrebai-adsk pierrebai-adsk self-assigned this Jul 20, 2026
@pierrebai-adsk
pierrebai-adsk requested a review from barbalt July 20, 2026 22:13
Comment thread lib/usdUfe/ufe/UsdUndoMaterialCommands.cpp Outdated
Comment thread lib/usdUfe/ufe/UsdUndoMaterialCommands.cpp
barbalt
barbalt previously approved these changes Jul 21, 2026

@barbalt barbalt 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.

small questions. Looks good overall

Removed unused variable and moved a comment to its proper place.
@pierrebai-adsk pierrebai-adsk removed their assignment Jul 21, 2026
@pierrebai-adsk pierrebai-adsk self-assigned this Jul 21, 2026
@barbalt
barbalt self-requested a review July 21, 2026 15:19
@pierrebai-adsk
pierrebai-adsk requested a review from barbalt July 21, 2026 15:19
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 21, 2026
@antonkhelou
antonkhelou merged commit afea60b into dev Jul 21, 2026
12 checks passed
@antonkhelou
antonkhelou deleted the bailp/EMSUSD-3340/ae-DnD-material branch July 21, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adsk Related to Autodesk plugin materials 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