Heya,
I recently made a cleanup script that would go through a bunch of specific things including UVsets and colorsets and remove any extraneous ones on selected meshes.
While I wrote a working function to check / remove colorsets, can't help but feel there was a better way.
With UVsets I can get a list [0,1,2,3, etc] returned with pm.polyUVSet(obj, query=True, allUVSetsIndices=True) and then iterate through each one.
I ended up using a while loop along with try/except to iterate through all existing colorsets on a mesh, which works but feels kinda messy compared to what I had to do for UVsets.
Is there an equivalent of allUVSetsIndices for pm.polyColorSet? I couldn't seem to find any in the pymel documentation and I feel like I'm missing out on something obvious here.