Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMSUSD-208 Material custom control for AE #3730

Closed

Conversation

pierrebai-adsk
Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk commented Apr 19, 2024

  • Added a new material custom control for the attribute editor (AE).
  • It creates text fields for the material path, inherited material and ancestor prim path.
  • If the material is directly on the prim, the inherited and ancestor fields are hidden.
  • If the material is inherited, the material path is set to "inheriting".
  • All fields are not editable.
  • The direct or inherited material is found by using the ComputeBoundMaterial function from the USD material binding API.
  • Added a button to go to the prim from which the material is inherited.
  • Insert the material section after the "Mesh" or "Xformable" section, whichever comes first.
  • Don't show the material section for materials themselves.

@pierrebai-adsk pierrebai-adsk added the adsk Related to Autodesk plugin label Apr 19, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Apr 19, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-208/material-assignment-in-AE branch from 5471180 to cefd83c Compare April 19, 2024 15:11
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-208/material-assignment-in-AE branch from cefd83c to 4db1788 Compare April 19, 2024 15:30
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-208/material-assignment-in-AE branch from 4db1788 to 990ab9d Compare April 19, 2024 19:23
@pierrebai-adsk pierrebai-adsk removed their assignment Apr 19, 2024
- Added a new material custom control for the attribute editor (AE).
- It creates text fields for the material path, inherited material and ancesto prim path.
- If the material is directly on the prim, the inherited and ancestor fields are hidden.
- If the material is inherited, the material path is set to "inheriting".
- All fields are not editable.
- The direct or inherited material is found by using the ComputeBoundMaterial function
  from the USD material binding API.
- Added a button to go to the prim from which the material is inherited.
- Don't show the material section for materials themselves.
- Show the direct material when there is one even though an inherited material over-rides it.
- Show tooltip explaining how inherited material affect the prim in the assigned material field.
- Use italics font for the assigneed material when inheriting a material.
- The material section is added after the section corresponding the prim type.
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-208/material-assignment-in-AE branch from 990ab9d to a415ba7 Compare April 19, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant