I did a script mostley out from pasting, trial&error and stuff like that to get the skinweights for meshes connected to a skeleton.
check out these 2 commands...
getAttr $skinClusterName.weightList[$vertex].weights[$jointIndex];
or
skinPercent -t $joints[$i] -q $skinClust[0] $component
where $component is:
$component = ($meshes[$j] + ".vtx["+$z+"]");
$joints[] and $meshes[] are string arrays containing the
names of my joints and meshes....so in my script I loop through those lists...selects them and fprints the info
to a file.
And if some other guy postes an answer that looks more advanced than mine along with some bad critic on mine,
please follow his advice, Im also new at this
))
Good luck....