-
Notifications
You must be signed in to change notification settings - Fork 203
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-2188 make materialX bindings accessible in Maya #4137
Conversation
pierrebai-adsk
commented
Feb 26, 2025
•
edited
Loading
edited
- Add the path leading to MaterialX to the PYTHONPATH in the MayaUSD Maya plugin module.
- Add a unit test that imports the MaterialX bindings.
- Make the unit test dependent on the version of USD
- Fix problem with GLSL in unit test in Maya 2025 with an extra import.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do suspect you will have to make this version dependent on USD as these Python bindings are a recent addition to the USD we package with MayaUSD.
@JGamache-autodesk I'm getting errors on older version of MayaUSD. Are they expected? Should the test only be run for Maya 2026 and higher? For example:
On Maya 2022:
|
I would expect 2025 and 2026 to work. Before that we did not even compile the MaterialX Python bindings. |
I tested on Windows, Maya 2025.3: adding that import fixes the problem. |
ea50e4d
to
185a994
Compare
Good! |
- Add the path leading to MaterialX to the PYTHONPATH in the MayaUSD Maya plugin module. - Make the new python path conditional based on the version of USD. - Add a unit test that imports the MaterialX bindings. - Make the unit test dependent on the version of USD - Fix problem with GLSL in unit test in Maya 2025 with an extra import.
6d31b29
to
4779bed
Compare