It works on a single object for me. I did notice that the color set editor doesn't immediately detect that sets were deleted, I have to reselect the object for it to refresh.
import maya.cmds as mcimport pprintsel = mc.ls(selection=True)for x in sel: mc.select(x, replace=True) color_list = mc.polyColorSet(query=True, allColorSets=True) print color_list if len(color_list) >= 0: for color_x in color_list: mc.polyColorSet(delete=True)mc.select(sel, replace=True)print "Color Sets deleted" The color…
This one isn't great but it works despite the errors it throws. I also never knew color sets could be shared/instanced, kinda neat! { // get selected objects and check each for color sets, deleting them if found. string $sel[] = `ls -sl`; for ($obj in $sel){ string $colorSetList[] = `polyColorSet -q -acs`; if…