Callbacks for vertex color set operations

Callbacks for vertex color set operations

Anonymous
Not applicable
586 Views
2 Replies
Message 1 of 3

Callbacks for vertex color set operations

Anonymous
Not applicable

I need to do bookkeeping operations when the user creates, deletes or renames a vertex color set on a mesh.  I can't find anything like this.  The closest thing I can do is to add my callback hooks to the scripts/others/colorSetEditCmd.mel file, but I'm hoping there is a better way.

 

Thanks, Sumit

0 Likes
587 Views
2 Replies
Replies (2)
Message 2 of 3

mspeer
Consultant
Consultant
0 Likes
Message 3 of 3

Anonymous
Not applicable

I see now that there is a polyColorPerVertex node, and the name of the color set name is in the polyColorPerVertex.colorSetName attribute.  So I can get a callback when the node is created, and when that attribute is changed, which should work for renaming.

But deletion of color sets is strange.  The node doesn't actually get deleted, instead a colorSetDelete node is added in the object's creation history.  I'm not sure how to get a callback when this happens.

0 Likes