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]> 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].
> 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/CACt6GrnSUPzOyLuj1Y%2BGFn926kq8xVE%2BHm9M1HseUa9CoLM1mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to