Many objects in my scene has Vertex color (left image) that is used in Shader Node (right image).
^ I want to change color1
to a more meaningful name e.g. color2
(for the sake of example).
However, renaming it in Shader Node (right image) alone is not enough - I need to rename vertex color for each object too (left image).
How to rename/update-the-name of vertex color name color1
of every object in file to color2
?
After I searched, I believe there is no such feature. Can it be done using python?
# 1. get all object (how?)
# 2. check whether each object has vertex color name `color1`
# 3. ... if so, get integer index of the slot, and rename the slot to `color2`
perhap it may look like this code :-
bpy.data.objects[some_object_name_string].renameVertexColor(`color1`,`color2`) ???