Skip to content

mayaUSDExport is exporting mesh with no subdivision scheme #1362

Description

@mhamid3d

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions