I cant say I know anything specifically about this process, but from a
general api perspective, it seems that specifying multiple source arguments
as an array isn't documented in either the MEL or the python api docs.
What the docs do say is that it does expect source and destination flags as
string values. Also in the examples, it refers to using
the createSkinCluster mel command for combining multiple pieces of geometry
into a skinCluster, which is then used as the source value.

Have you tried selecting your source meshes, using createSkinCluster, and
then passing that as the string value for *sourceSkin?*
Here is the snippet from the python api docs:

... create geometry ..
... select them ...

maya.mel.eval('createSkinCluster "-mi 5 -dr 4"' )

cmds.copySkinWeights( ss='skinCluster1', ds='skinCluster2', noMirror=True )



On Tue, Sep 20, 2011 at 11:43 AM, Christian Akesson <[email protected]
> wrote:

> In cases where I want to transfer weights from many separate meshes to a
> merged version of all those meshes:
> So I have done that many times in MEL land using:
> $sourceMeshes - an array of meshes
> $targetMesh - single target mesh
> copySkinWeights -noMirror -surfaceAssociation closestPoint
> -influenceAssociation name $sourceMeshes $targetMesh;
>
> I am unable to perform the same command using Maya.cmds or PyMel (or at
> least not with the same outcome) :
> copySkinWeights([sourceMeshes, targetMesh],
> surfaceAssociation='closestPoint', influenceAssociation='name')  - Works but
> the result is not accurate.
>
> The mel version will end up being accurate while the PyMel, maya.cmds (even
> mel.copySkinWeights) are not, which leads me to believe that something is
> messed up with my formatting or I've come across a bug.
>
> If you use the ss= and ds= flags, there seems to be no way of going from
> multiple to a single.
>
> Has anyone come across this?
> /Christian
>
>
>  --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to