Awesome. Thats good to know. I had to assume that all maya python commands
work the same way, since thats the common approach when using the UI
commands as well.



On Tue, Mar 13, 2012 at 2:26 PM, Ray Faenza <rayfae...@gmail.com> wrote:

> Thanks Justin. Works like a charm.
>
>
> On Tue, Mar 13, 2012 at 4:59 PM, Justin Israel <justinisr...@gmail.com>wrote:
>
>> 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 <rayfae...@gmail.com> 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
>>
>
>  --
> 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