-- Vertex Color Killer 1.0 -- Destroys vertex alpha, illumination and color data on the current selection. -- By Smallpoly (Michael Vladimir Nicolayeff), 2016 -- Does not currently collapse the objects at the end. This makes it simpler to remove from objects that don't need it if they were accidentally selected. -- Does vertex alpha first, then illumination, then color. macroScript killvertcolors category:"# Scripts" buttonText: "Kill VC" toolTip:"Kill Vertex Colors on Selection" ( -- get the current selection for s in selection do ( -- grab the class sClass = classof s -- make sure it's edit poly, mesh or patch if sClass == Editable_Poly or sClass == Editable_mesh or sClass == Editable_patch or sClass == PolyMeshObject then ( -- remove data channelInfo.ClearChannel s -2 -- Remove Vertex Alpha channelInfo.ClearChannel s -1 -- Remove Vertex Illum channelInfo.ClearChannel s 0 -- Remove Vertex Color ) ) )