I've run the following code to export a selected mesh in maya:
import maya.cmds as mc
mc.mayaUSDExport(
file='/home/mhamid/Documents/usd_test/walkman_v001.usd',
chaser=['alembic'],
chaserArgs=[
('alembic', 'primvarprefix', 'CMT_=CMT_')
],
shadingMode='none',
selection=True,
kind='component',
exportDisplayColor=True,
defaultMeshScheme='catmullClark'
)
Upon inspecting the resulting usd file in usdview, the subdivisionScheme attribute is set to none. However when using the File-->Export Selection gui in Maya, with the same export options as the python command, it will export with catmullClark subdivisionScheme. Keep in mind none of the shapes have any USD_* attributes, so they are not being overridden anywhere.
Maya 2022
USD v21.05
maya-usd v0.9.0
I've run the following code to export a selected mesh in maya:
Upon inspecting the resulting usd file in usdview, the subdivisionScheme attribute is set to none. However when using the File-->Export Selection gui in Maya, with the same export options as the python command, it will export with catmullClark subdivisionScheme. Keep in mind none of the shapes have any USD_* attributes, so they are not being overridden anywhere.
Maya 2022
USD v21.05
maya-usd v0.9.0