Hello David,

Maybe you can try adding the  noMirror=True flag on the
copySkinWeightscommand in line 20...
Something like
            cmds.copySkinWeights(sourceSkin=currentSkinCluster,
                destinationSkin=newSkinCluster,
                surfaceAssociation="closestPoint",
                influenceAssociation=("name", "label", "oneToOne"),
                normalize = True, noMirror=True)
I would also change the influenceAssociation to "closestJoint", but it
seems to work with out it too...

Cheers!

Eduardo



On Mon, Feb 24, 2014 at 7:20 PM, David Martinez <
[email protected]> wrote:

> Hi,
>
> I'm working on a really simple script and yet I'm having trouble getting
> the script to do what I want.
> Here is a description of what I'm trying to do:
>
> Get selection
> Duplicate the object
> For any skin Clusters that the object may have
>     | Get joints skinned to the skin cluster
>     | Replace the selection with the duplicated object
>     | Adds the joints connected to the skin Cluster to the selection
>     | Skin the new object
>     | Copy weights from one object to the other
>
> Here is the code that I have so far:
> https://gist.github.com/davidmartinezanim/9198402
>
> I've tried to get the code to have the same settings as I have in Maya:
>
> - http://www.elusiveideas.com/smoothBindOptions.PNG
> - http://www.elusiveideas.com/copySkinWeightOptions.PNG
>
> And yet, when I do it in Maya, it works, but when I run the code, the
> original and duplicate objects are different. (When I move one of the
> joints, the skinning is not quite the same)
>
> Any ideas about what could be causing the issue?
>
> --
> David Martinez - Technical Animator
>
> Email: [email protected]
> Website: http://www.elusiveideas.com
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAMLeNpyWbqvJkp7bFyh7jNZg3zJFV_iV902CjKd7xpoOL5dpbw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Eduardo GraƱa
www.eduardograna.com.ar

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CACt6Gr%3DsueS9ujBK%2BNCTQW8AtVpi-EpG-gbLK%3D5P7t0Qk%2BN9qw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to