Skip to content

Commit

Permalink
Updated readme and comment fix
Browse files Browse the repository at this point in the history
!1 Added note to the Readme for Python3.7 usage in Maya2022.  Removed unnecessary comment.
  • Loading branch information
JAThingvold committed Dec 14, 2021
1 parent dea2802 commit 37916e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions QExportSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ def _ExportDOFs(self, jointNode, level):
ub = math.radians(cmds.getAttr("%s.XRotDoF_UpperBound" % nodeName))
self._Write( Spaces(level+2)+"<RotationX>")
self._Write( Spaces(level+3)+"<Constraint LowerBound=\""+str(lb)+"\" UpperBound=\""+str(ub)+"\"/>")
# 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)

Expand All @@ -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)+"<RotationY LowerBound=\""+str(lb)+"\" UpperBound=\""+str(ub)+"\"/>")
self._Write( Spaces(level+2)+"<RotationY>")
self._Write( Spaces(level+3)+"<Constraint LowerBound=\""+str(lb)+"\" UpperBound=\""+str(ub)+"\"/>")

Expand Down Expand Up @@ -306,7 +306,8 @@ def _ExportDOFs(self, jointNode, level):
ub = math.radians(cmds.getAttr("%s.ZRotDoF_UpperBound" % nodeName))
self._Write( Spaces(level+2)+"<RotationZ>")
self._Write( Spaces(level+3)+"<Constraints LowerBound=\""+str(lb)+"\" UpperBound=\""+str(ub)+"\"/>")
# 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)

Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 37916e8

Please sign in to comment.