What I'd like to code is: With a rigged character If I select a specific joint. I'd like to run the script, which would return the selection of polygons influenced by that specific joint. (As if I manually went into face mode and started selecting the polygons one by one) Have no idea where to start on this one. Any ideas?
I quickly tried this. Not entirely sure how to select faces, need to look around the documentation abit, i tried polyInfo but the results where wierd.. anyway import maya.cmds as cmds#get the skin cluster and the jointselection = cmds.ls(sl=True, fl=True)jointSelection = cmds.ls(sl=True,type = "joint")#we need the shape…