I've created a window of buttons to toggle smoothing groups on a character. All works fine but at the moment it's always looking for the same number of meshes within a group (checking their smoothness is all 1). I'd like to be able to add as many or as little to a group.
This is a section I'm needing help with (currently looking for three meshes):
CODE
def LouCloth():
#toggle Lou's cloth smoothing
selecter = mc.select("Clothes") # select everything in the Clothes group
smoothIt = mc.displaySmoothness( q=True, polygonObject=True )
if smoothIt == [1,1,1]:
mc.displaySmoothness(divisionsU=3, divisionsV=3, pointsWire=16, pointsShaded=4, polygonObject=3)
mc.select(clear=True)
else:
mc.displaySmoothness(divisionsU=0, divisionsV=0, pointsWire=4, pointsShaded=1, polygonObject=1)
mc.select(clear=True)
Any help is always appreciated.