pmsk.skinning – SkinWeightUtility.ExportSkinWeight()

  • Facebook
  • Twitter
  • Email
  • Add to favorites

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.
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>