我已经在PyMel文档中找了很久,但是我不能从pymel.core.datatypes中得到矩阵的逆。我的代码是:
inverseM = orientationM*bindRotationM;
inverseM = inverseM.asMatrixInverse()我只得到错误: error:第1行: AttributeError: file S:\Maya_2017_DI\build\Release\runTime\Python\Lib\site-packages\maya\OpenMaya.py第54行: asMatrixInverse #
发布于 2018-02-05 12:14:57
如果inverseM已经是一个pymel矩阵,那么您需要inverseM.inverse()。文档是here。实际上是它的the same thing for an OpenMaya MMatrix too
https://stackoverflow.com/questions/48598523
复制相似问题