View Full Version : select bind mesh from joint?
08-08-2012, 03:46 AM
How could I find which mesh object is bind to the selected joint?
I tried to use the listConnections command to no luck. But I'm probably too tired to figure it out.
For a smooth bind you could select some joints and do something like this:
import pymel.core as pm
joints = pm.selected(type='joint')
for j in joints:
skinClusters = j.worldMatrix.connections(type='skinCluster')
for s in skinClusters:
geo = s.getGeometry()
print '%s influences %s via %s'%(j,geo,s)
08-08-2012, 06:46 PM
Thanks for responding David.
I'm not familiar with Pymel. Any chance this could apply to Mel?
Yeah, just use listConnections on the worldMatrix attribute to find the skinCluster, then use the skinCluster command to find the geometry.
08-08-2012, 11:43 PM
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.
vBulletin v3.0.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.