In python, it is not valid to pass multiple keywords of the same name as
parameters. This is obviously a typo in both the python commands docs, and
the pymel docs that copied them 1-to1. For commands that state you can pass
the flag multiple time, you should try and combine them into a tuple.

See if this works for you instead:

influenceAssociation = ('label', 'closestBone','closestJoint')



On Tue, Mar 13, 2012 at 1:10 PM, rfsf <[email protected]> wrote:

> Curious, anyone else have this issue when scripting with the
> copySkinWeights command?
>
> The mel command works fine, but the python doesn't work .
> I receive the error # Error: keyword argument repeated
>
>
> mel : copySkinWeights  -noMirror -surfaceAssociation closestPoint -
> influenceAssociation label -influenceAssociation closestBone -
> influenceAssociation closestJoint;
>
> import pymel.core as pm
>
> pm.copySkinWeights(noMirror=True,surfaceAssociation =
> 'closestPoint',influenceAssociation = 'label',influenceAssociation
> ='closestBone',influenceAssociation ='closestJoint')
>
> --
> 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