diff --git a/QExportSolver.py b/QExportSolver.py index 49ff6ea..c69aea4 100644 --- a/QExportSolver.py +++ b/QExportSolver.py @@ -255,7 +255,8 @@ def _ExportDOFs(self, jointNode, level): ub = math.radians(cmds.getAttr("%s.XRotDoF_UpperBound" % nodeName)) self._Write( Spaces(level+2)+"") self._Write( Spaces(level+3)+"") - # Check for coupling definition + + # Check for coupling definition bHasCoupling1 = cmds.attributeQuery("XRot_CP1_Coeff",node=nodeName, exists=True) bHasCoupling2 = cmds.attributeQuery("XRot_CP2_Coeff",node=nodeName, exists=True) @@ -277,7 +278,6 @@ def _ExportDOFs(self, jointNode, level): if bRY: lb = math.radians(cmds.getAttr("%s.YRotDoF_LowerBound" % nodeName)) ub = math.radians(cmds.getAttr("%s.YRotDoF_UpperBound" % nodeName)) - #self._Write( Spaces(level+2)+"") self._Write( Spaces(level+2)+"") self._Write( Spaces(level+3)+"") @@ -306,7 +306,8 @@ def _ExportDOFs(self, jointNode, level): ub = math.radians(cmds.getAttr("%s.ZRotDoF_UpperBound" % nodeName)) self._Write( Spaces(level+2)+"") self._Write( Spaces(level+3)+"") - # Check for coupling definition + + # Check for coupling definition bHasCoupling1 = cmds.attributeQuery("ZRot_CP1_Coeff",node=nodeName, exists=True) bHasCoupling2 = cmds.attributeQuery("ZRot_CP2_Coeff",node=nodeName, exists=True) diff --git a/readme.md b/readme.md index a3d0ed2..944a290 100644 --- a/readme.md +++ b/readme.md @@ -18,6 +18,10 @@ Manual 5. In Maya, open the script editor and run the following Python code: `import qtm_connect_maya;import qtm_connect_maya.mayaui;qtm_connect_maya.mayaui.install()` +### Note on Maya versions +Maya2022 uses Python3.7, earlier versions use Python2.7. The main branch of the plugin has been updated to Python3.7. +For earlier vesions of Maya you must use the Python2.7 branch. + ## Streaming skeleton data To stream skeleton data you must first define a skeleton in QTM. Do this by clicking the `Calibrate skeleton` button in QTM.