Export skin information of node which has skin modifier
Written by Park Yun Gyu
mynode = select $
myskin = mynode.modifiers[#Skin]
OutFile = createfile "c:\\ExportSkin.txt"
NumVert = skinOps.getNumberVertices myskin
for i=1 to NumVert do
(
NumWeight = skinOps.GetVertexWeightCount myskin i
format "i:% NumWeight:%\n" i NumWeight to: OutFile
for w=1 to NumWeight do
(
BoneID = skinOps.GetVertexWeightBoneID myskin i w
BoneName = skinOps.GetBoneName myskin BoneID 1
format "--BoneID:% BoneName:%\n" BoneID BoneName to: OutFile
)
)
close OutFile