If I only have a reference to a joint how do I select the mesh that the joint is skinned to? Thanks in advance for any help it is much appreciated!
Solved! Go to Solution.
Solved by mostly_human. Go to Solution.
Solved by osidedan. Go to Solution.
Untested but should give the idea.
$skins[] = `listConnections -type "skinCluster"`; $mesh = `skinCluster -geometry $skins[1]`;
Would recommend switching to python if you're able to.
What lee.dunham suggests will definitely work! He mentioned it is untested, so I gave it a quick test, and you just need to add a variable type on the first line, and a query flag on the second line for it to work:
string $skins[] = `listConnections -type "skinCluster"`; $mesh = `skinCluster -q -geometry $skins[1]`;
Edit:
if you need to select the mesh, add this at the end:
select -r $mesh;
and if you need to select the transform instead, add this at the end instead:
$transform = `listRelatives -parent $mesh`; select -r $transform;
Hi!
Please mark every answer that solves your problem (or gives the correct answer) as solution, so others interested in this thread will get a better overview.
You can of course also mark your own reply as solution if it contains a solution or a "correct" answer.
Can't find what you're looking for? Ask the community or share your knowledge.