Hey Eduardo,

Thanks, well i already kinda did that, i was wondering something in maya 
api that can give me automatically joints and geometry separately as I 
couldnt find anything from MFnSkinCluster.

D.

On Tuesday, March 24, 2015 at 12:22:02 PM UTC+1, Eduardo Grana wrote:
>
> Hello Dilen,
>
> You can do soemthing like this afterwards...
>
> for i in range(nInfs):
>     print infs[i] #maya.OpenMaya.MDagPath to use it with other MFn s
>     print infs[i].fullPathName() # |jnt_grp|skin_C_001__SKN to go with 
> maya.cmds
>
> Cheers,
> Eduardo
>
> On Tue, Mar 24, 2015 at 8:01 AM, Dilen Shah <[email protected] 
> <javascript:>> wrote:
>
>> hey guys,
>>
>> I am trying a test in API to get the weights of a skinCluster. So i get 
>> the influence objects from the skinCluster but how can i get geometry 
>> influences from that skincluster and its weights so i can save it 
>> separately?
>>
>> import maya.OpenMaya as OpenMaya
>> import maya.OpenMayaAnim as OpenMayaAnim
>>
>> skinCls = "skinCluster"
>> selList = OpenMaya.MSelectionList()
>> selList.add(skinCls)
>>
>> mObj = OpenMaya.MObject()
>> selList.getDependNode(0, mObj)
>>
>> skinFn = OpenMayaAnim.MFnSkinCluster(mObj)
>> infs = OpenMaya.MDagPathArray()
>> nInfs = skinFn.influenceObjects(infs)
>>
>> So from this how can i get the geometry influences.
>>
>> Thanks.
>>
>> D.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/e99fe8b0-36e2-494b-8cbb-f4165ad262b1%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/e99fe8b0-36e2-494b-8cbb-f4165ad262b1%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Eduardo GraƱa
> www.eduardograna.com.ar
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/03cd40be-c7a4-4ac4-a8dd-7bd386456970%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to