CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 10-23-2012, 07:17 AM   #1
xcx
Frequenter
 
xcx's Avatar
Antti Veršjšnkorva
Senior Technical Artist
Finland
 
Join Date: Jun 2003
Posts: 185
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.

Code:
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.

Code:
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
 
Old 10-23-2012, 07:17 AM   #2
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:22 AM.


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