You could do something like:

def getShapeAffectedByDeformer(deformer):
    oNode = getMObject(deformer)
    fnNode = OpenMayaAnim.MFnGeometryFilter(oNode)
    oOutputs = OpenMaya.MObjectArray()
    fnNode.getOutputGeometry(oOutputs)
    fnShape = OpenMaya.MFnDagNode(oOutputs[0])
    return fnShape.partialPathName()

def getMObject(node):
    sList = OpenMaya.MSelectionList()
    sList.add(node)
    oNode = OpenMaya.MObject()
    sList.getDependNode(0, oNode)
    return oNode


On Wed, Jan 27, 2010 at 8:57 AM, AK Eric <warp...@sbcglobal.net> wrote:

> Not the API, but I've used this in the past:
>
> string $inf[] = `listConnections "mySkinCluster.matrix"`;
>
>
> On Jan 27, 2:15 am, Subbu <subbu....@gmail.com> wrote:
> > Hi,
> >
> > Any one has faced this situation to select one object from it's known
> > or selected skinCluster.
> >
> > There should be some option to select or get object info from
> > skinCluster command.
> > (i.e for ex:  skinCluster (clustName='', q=True, object=True))
> >
> > I have used connectionInfo command to get skinned object.
> > I think there may be some other solution through api.
> >
> > Please reply..
> >
> > Thanks
> > Subbu
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to