The SkinWeightUtility.ExportSkinWeight()-method exports the skin weight data of a given skinCluster node to a bunch of raw txt-files.
First parameter expects the name of the skinCluster node whose skin weight data should be exported.
Second parameter expects a prefix as string to use for naming the files on export.
The SkinWeightUtility.ExportSkinWeight()-method works vertex-based and includes only influenced vertices for export.
Using skin weight data files for topologically non-identical models may produce unexpected results.
Use the code below (adjusted to your needs) to export skin weights:
## loads the pmsk module
import pmsk;
## method call
pmsk.shader.SkinWeightUtility.ExportSkinWeight("yourSkinCluster", "yourPrefix");
## for further information about parameters and methods
pmsk.shader.SkinWeightUtility.Help();
Take a look at SkinWeightUtility.ImportSkinWeight() to import skin weight data.
Take a look at pmsk – Pott Maya Script Kit for the pmsk package.