Add influence

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  10 October 2012
Add influence

I have a problem with referenced objects and loading skin weights.

My skin weight loading first unbind skin cluster and recreate it with correct bones and set weights. However if skin cluster is referenced it can't be removed. So I try remove bones and add correct ones without deleting skin cluster.

But...

If I remove all joints from skin cluster.


sc = "skinCluster1"
joints = cmds.skinCluster(sc, inf=True, q=True)   
for strJoint in joints:
    cmds.skinCluster(sc, ri=strJoint, e=True)


Work fine, but for some reason after this I can't add influences.


cmds.skinCluster(sc, ai="joint2", omi=False, e=True)


If I left one or more joints to skin cluster add influence works fine, but not if I remove all of them.

So is there a way to remove all bones and add new bones to skinCluster?

Thanks
__________________
http://www.verajankorva.com
 
  10 October 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:11 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.