You can use MFnWeightGeometryFilter:

oCluster      # MObject to a cluster or other deformer
fnDeformer = OpenMaya.MFnWeightGeometryFilter(oCluster)

# Get components effected by deformer
fnSet = OpenMaya.MFnSet(fnDeformer.deformerSet())
members = OpenMaya.MSelectionList()
fnSet.getMembers(members, False)
dagPath = OpenMaya.MDagPath()
components = OpenMaya.MObject()
members.getDagPath(0, dagPath, components)

# Get the weights
weight = OpenMaya.MFloatArray()
fnDeformer.getWeights(0, components, weights)

-Chad


On Wed, Oct 22, 2008 at 10:57 AM, chaseCoop <[EMAIL PROTECTED]>wrote:

>
> I am trying to write a python script/plugin that will write out
> painted deformer weight values such as wire deformers, clusters, etc
> in the same fashion as writing out a skinCluster weight file (values,
> not maps). Could anyone give me an idea of what class would be the
> best to start from for this in the API ? Any ideas would help! Thanks!
> >
>


-- 
www.chadvernon.com

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to