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-2138] correct way to use exportMaterialCollections #4116

Open
santosg87 opened this issue Feb 11, 2025 · 0 comments
Open

[EMSUSD-2138] correct way to use exportMaterialCollections #4116

santosg87 opened this issue Feb 11, 2025 · 0 comments

Comments

@santosg87
Copy link
Collaborator

Discussed in #4020

Originally posted by willDTF November 29, 2024
I need to export USD from maya with material collection assigned to objects

reading usd-maya documentation, I need exportMaterialCollections and according to this ticket resolved, i dont need to setup materialCollectionsPath argument. so i tried :

cmds.mayaUSDExport( exportMaterialCollections=True, file=usdFilePath, )

this doesn't work, no collection are created. then :

cmds.mayaUSDExport( materialCollectionsPath='/Mtl', exportMaterialCollections=True, file=usdFilePath, )

same result. i tried many variations, without success. The only step forward i've made is with :

cmds.mayaUSDExport( exportCollectionBasedBindings=True, exportMaterialCollections=True, file=usdFilePath, )
material collections is created with the addition of exportCollectionBasedBindings, but no objects are in the collections

cmds.mayaUSDExport( exportCollectionBasedBindings=True, exportMaterialCollections=True, file=usdFilePath,materialCollectionsPath='/Mtl' )
gives the same result that the previous, collections exist but empty

How can I properly export a USD file with material collections assigned ?

thank you

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

No branches or pull requests

1 participant