MEL joint name


#1

Hi, i’m trying make a simple skinning script and I stuck on:

first I selecting egdes after I do “go to vertex”, after I selecting joint where should be added influence
now where is print “$selectJoint” MEL showing me a vertex names (), but not a joint name.
This joint name I wanna use here “setSmoothSkinInfluence $selectJoint[1];” so maya will know where and for which joint she need put Influence (on this part I will work late)
any ideas how to get joint name?

ConvertSelectionToVertices;
   ArtPaintSkinWeightsTool;
   artAttrSkinWeightTypeCallback artAttrSkinPaintCtx;
   
   
        string $selectJoint[1] = `ls -sl`;
       
           buildObjectMenuItemsNow "MayaWindow|formLayout1|viewPanes|modelPanel4|modelPanel4|modelPanel4|modelPanel4ObjectPop";
           setSmoothSkinInfluence $selectJoint[1];
           
    print $selectJoint

#2

I wonder why it returns you vertex names anyway. Did you try to use type mask for ls command ?)