parameters: (self,percent=None)
docstring: Find the new matrix and return it
docstring_summary: Find the new matrix and return it
docstring_tokens: Find the new matrix and return it
function: def asMatrix(self,percent=None):
  		"""
  		Find the new matrix and return it
  		"""
  		if percent == None:
  			matrix = OpenMayaMPx.MPxTransformationMatrix.asMatrix(self)
  			tm = OpenMaya.MTransformationMatrix(matrix)
  			quat = self.rotation()
  			rockingValue = self.getRockInX()
  			newTheta = math.radians( rockingValue )
  			quat.setToXAxis( newTheta )
  			tm.addRotationQuaternion( quat.x, quat.y, quat.z, quat.w, OpenMaya.MSpace.kTransform )
  			return tm.asMatrix()
  		else:
  			m = OpenMayaMPx.MPxTransformationMatrix(self)
  			#
  			trans = m.translation()
  			rotatePivotTrans = m.rotatePivot()
  			scalePivotTrans = m.scalePivotTranslation()
  			trans = trans * percent
  			rotatePivotTrans = rotatePivotTrans * percent
  			scalePivotTrans = scalePivotTrans * percent
  			m.translateTo(trans)
  			m.setRotatePivot( rotatePivotTrans )
  			m.setScalePivotTranslation( scalePivotTrans )
  			#
  			quat = self.rotation()
  			rockingValue = self.getRockInX()
  			newTheta = math.radians( rockingValue )
  
  			quat.setToXAxis( newTheta )
  			m.rotateBy( quat )
  			eulerRotate = m.eulerRotation()
  			m.rotateTo( eulerRotate * percent, OpenMaya.MSpace.kTransform )
  			#
  			s = self.scale( OpenMaya.MSpace.kTransform )
  			s.x = 1.0 + ( s.x - 1.0 ) * percent
  			s.y = 1.0 + ( s.y - 1.0 ) * percent
  			s.z = 1.0 + ( s.z - 1.0 ) * percent
  			m.scaleTo( s, OpenMaya.MSpace.kTransform )
  			#
  			return m.asMatrix()
function_tokens: def asMatrix ( self , percent = None ) : if percent == None : matrix = OpenMayaMPx . MPxTransformationMatrix . asMatrix ( self ) tm = OpenMaya . MTransformationMatrix ( matrix ) quat = self . rotation ( ) rockingValue = self . getRockInX ( ) newTheta = math . radians ( rockingValue ) quat . setToXAxis ( newTheta ) tm . addRotationQuaternion ( quat . x , quat . y , quat . z , quat . w , OpenMaya . MSpace . kTransform ) return tm . asMatrix ( ) else : m = OpenMayaMPx . MPxTransformationMatrix ( self ) # trans = m . translation ( ) rotatePivotTrans = m . rotatePivot ( ) scalePivotTrans = m . scalePivotTranslation ( ) trans = trans * percent rotatePivotTrans = rotatePivotTrans * percent scalePivotTrans = scalePivotTrans * percent m . translateTo ( trans ) m . setRotatePivot ( rotatePivotTrans ) m . setScalePivotTranslation ( scalePivotTrans ) # quat = self . rotation ( ) rockingValue = self . getRockInX ( ) newTheta = math . radians ( rockingValue ) quat . setToXAxis ( newTheta ) m . rotateBy ( quat ) eulerRotate = m . eulerRotation ( ) m . rotateTo ( eulerRotate * percent , OpenMaya . MSpace . kTransform ) # s = self . scale ( OpenMaya . MSpace . kTransform ) s . x = 1.0 + ( s . x - 1.0 ) * percent s . y = 1.0 + ( s . y - 1.0 ) * percent s . z = 1.0 + ( s . z - 1.0 ) * percent m . scaleTo ( s , OpenMaya . MSpace . kTransform ) # return m . asMatrix ( )