-
Notifications
You must be signed in to change notification settings - Fork 201
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-1005 export materials without meshes #3785
Conversation
pierrebai-adsk
commented
May 24, 2024
- Add the full list of Maya objects that were selected in the export job export arguments.
- Pass the full object list when creating the UsdMayaJobExportArgs in the base export command, prim updater manager and export translator.
- In specific material exporter, don't skip if the assignments are empty, since we are now exporting materials independently of meshes.
- Avoid errors when filling the default prim UI since some objects in the selections might not be DAG objects.
- Don't disable exporting materials UI when meshes are disabled since they are now independent.
- Add isExportingMeshes, isExportingCameras and isExportingLights functions to UsdMayaJobExportArgs.
- Use them instead of custom code during export.
- When exporting selected, only include materials that are selected or used by a mesh.
- When exporting all and mesh export is enabled, only export materials used by meshes.
- When exporting all and mesh export is disabled, export all materials.
- Test exporting materials with and without meshes.
- Test exporting selection with and without meshes.
- Add the full list of Maya objects that were selected in the export job export arguments. - Pass the full object list when creating the UsdMayaJobExportArgs in the base export command, prim updater manager and export translator. - In specific material exporter, don't skip if the assignments are empty, since we are now exporting materials independently of meshes. - Avoid errors when filling the default prim UI since some objects in the selections might not be DAG objects. - Don't disable exporting materials UI when meshes are disabled since they are now independent. - Add isExportingMeshes, isExportingCameras and isExportingLights functions to UsdMayaJobExportArgs. - Use them instead of custom code during export. - When exporting selected, only include materials that are selected or used by a mesh. - When exporting all and mesh export is enabled, only export materials used by meshes. - When exporting all and mesh export is disabled, export all materials. - Test exporting materials with and without meshes. - Test exporting selection with and without meshes.
@pierrebai-adsk Does this remove the need to address EMSUSD-753 ? I see that it was closed even though it was meant to remove any nodes that are left with no connections. If that ticket isn't affected by this PR then I think we should ask the team to re-open it. |
No, I doubt it has any consequence related to that. |
@gooroodev please review |
Thanks for the tag, @admsev! Summary of ChangesThis pull request introduces the ability to export materials from Maya to USD without exporting meshes. The key changes include:
Issues, Bugs, or Typos
General Review of Code Quality and Style
Proposed Improvements
Overall, the pull request is well-implemented and adds valuable functionality to the project. The proposed improvements and fixes are minor and aimed at enhancing readability and consistency. Yours, Gooroo.dev. React or reply to let me know what you think! |
About the automatic review:
|