# set to vertex paint mode to see the resultīpy._set(mode='VERTEX_PAINT')Īlso a small blogpost about vertex colours here and here, if you are so inclined. # color_layer = mesh.vertex_colors.active # or you could avoid using the color_layer name Let us assume for sake of brevity that there is now If you want to do it by script: import bpy You can easily and non-destructively represent your scene in grayscale without the need of changing materials or affecting the overall quality of the render. You can pick faces with face selection masking The most elegant solution is using color management and a custom matrix to convert the images color information to a grayscale. The newly created material shows some properties like Diffuse and Specular color change them as you like. With your object selected open the materials tab and click the New button. You can enter numericals into the Blender colour picker. Colors are not directly assigned to objects, objects can have multiple materials which control the properties of surfaces or volumes. You can set a collection of faces to one colour in vertex paint mode, by selecting them and setting the colour from the colour picker, then shift+ K (while the mouse cursor is inside the viewport) will fill the selection with that colour. There are 9 verts in this subdivided plane, and the middle vertex is used in 4 faces and therefore has 4 different colors associated. Possibly this explains that a bit more clear. Behind the scenes the Vertex Colors are not stored in the data per vertex but in a Vertex Color layer, which stores vertex colors for each face of the mesh. Each vertex can be shared by a number of faces, therefore a vertex doesn't necessarily have one color associated with it. There is no built-in interface (yet) to get the rgb value of a selected Vertex. Per face is however, as stated below, not a problem. There may be add-ons that cater to this, but at present (March 2016)īlender doesn't have a (non-Python) way to set the Vertex Colors per selected vertex/vertices. I would like to get and set color values numerically (ie.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |