maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

[MAYA-114580] Blendshape Sample doesn't export blendShapeWeights

Open ansuter opened this issue 3 years ago • 1 comments

Describe the bug

Originally I had a scene with a tweak node in it. It wasn't exporting properly so I went and looked at the sample.

I took the blendshape sample, and tried to use mayausd to save it out, and just get empty float array for blendshape weights on every SkelAnimation.

def SkelAnimation "Animation"
{
    uniform token[] blendShapes = ["_blendShape17_pCube1tgtShape"]
    float[] blendShapeWeights
}

I get numerous errors in the console too.

...
# Error: USDSkelBlendShape does not support animated blend shapes and a node: squash1 was found that could potentially cause it. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 225 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |cube_extra_deformer_in_stack|group9|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape23_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_skinned_cube_blendshape_baked_target_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape13_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_cube_4_blendshape_inbetween_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: USDSkelBlendShape does not support animated blend shapes and a node: squash1 was found that could potentially cause it. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 225 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |cube_extra_deformer_in_stack|group9|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape23_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_skinned_cube_blendshape_baked_target_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape13_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_cube_4_blendshape_inbetween_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: USDSkelBlendShape does not support animated blend shapes and a node: squash1 was found that could potentially cause it. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 225 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |cube_extra_deformer_in_stack|group9|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape23_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_skinned_cube_blendshape_baked_target_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape13_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_cube_4_blendshape_inbetween_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: USDSkelBlendShape does not support animated blend shapes and a node: squash1 was found that could potentially cause it. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 225 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |cube_extra_deformer_in_stack|group9|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape23_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_skinned_cube_blendshape_baked_target_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape13_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_cube_4_blendshape_inbetween_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: USDSkelBlendShape does not support animated blend shapes and a node: squash1 was found that could potentially cause it. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 225 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |cube_extra_deformer_in_stack|group9|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape23_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_skinned_cube_blendshape_baked_target_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: Unrecognized node encountered in blendshape deformation chain: blendShape13_tgt. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 258 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: Blendshapes failed pre-export checks at DAG path: |basic_cube_4_blendshape_inbetween_anim|base|baseShape -- Runtime Error in writeMeshAttrs at line 449 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: There was a mismatch in the blendshapes determined and their corresponding weight plugs. -- Runtime Error in writeBlendShapeAnimation at line 1091 of ..\..\..\lib\usd\translators\meshWriter_BlendShapes.cpp # 
# Error: USDSkelBlendShape does not support animated blend shapes and a node: squash1 was found that could potentially cause it. Please bake down deformer history before attempting an export, or specify -ignoreWarnings during the export process. -- Runtime Error in mayaCheckIntermediateNodesForMeshEdits at line 225 of ..\..\..\lib\usd\translators\meshWriter.cpp # 
...

Steps to reproduce Steps to reproduce the behavior:

  1. Open sample
  2. Export All:

image 4. The above errors occur

Expected behavior. I would hope that the exporter would export blendshapes and their weights. But the weights are all empty.

Attachments

If applicable, add screenshots, sample files, etc to help explain your problem.

Specs (if applicable):

  • OS & version [e.g. Windows 10] Win10
  • Compiler & version [e.g. gcc 6.3.1] VS2019
  • Maya version [e.g. Maya 2020] - Maya 2022
  • Maya USD commit SHA [e.g. dev at caa921c1] 1cebdc7dcf62e8b60cc0e7b02d78f6249f2192e9 but happens on older versions too
  • Pixar USD commit SHA [e.g. dev at b85ddac2]

Additional context Add any other context about the problem here.

ansuter avatar Sep 08 '21 21:09 ansuter

I can reproduce this one on my side as well. we are investigating a bit deeper at the moment.

santosg87 avatar Sep 24 '21 17:09 santosg87

investigating this a bit deeper, and the problem here seems to be related to how the file is built. I am able to export select objects, but export all fails. you can test the blendshape weights. using the samples that are animated makes it easier to see that the blendshapes are valid.

we have made improvements to how we export blendshapes, and they should be working much better. althoguh usdSkel support is an ongoing effort. are you able to confirm that blendshapes export ok for you? I think this issue might be ok to close as it is for now.

santosg87 avatar Jun 20 '24 15:06 santosg87

closing this for now, based on my last comment. if this is still an issue even with the info above, please feel free to re-open this. :)

santosg87 avatar Jul 09 '24 20:07 santosg87