Skip to main content
Share Your Experience: Take the 2024 Developer Survey
14 votes
Accepted

Is there a way to compute vertex density?

Assuming Cycles, the simplest method is to use the Point Density node. The Point Density texture calculates the distances from a set of points and can be set to either take those points from a ...
Rich Sedman's user avatar
  • 44.8k
13 votes
Accepted

Dilate/expand vertex color mask?

This cannot be done in shader nodes, because to Dilate (paint) a point on surface one must know the color of surrounding area of that point. The node that samples Vertex Color does not allow for ...
Jaroslav Jerryno Novotny's user avatar
10 votes
Accepted

How to display and use Vertex Color from OBJ model

As others stated, the OBJ format specification officially does not have the ability to contain any vertex color information, but some apps extend the format to support this feature (RGB values are ...
Jan Kadeřábek's user avatar
10 votes

Is there a way to compute vertex density?

Final result: (enlarge to see vertex density) Edit (your example): After playing with Weight Tools I was able to achieve desired result even with ngons (more below), also Color Ramp in this example ...
cgslav's user avatar
  • 17.6k
10 votes
Accepted

How do I set a vertex color material in Blender 2.8?

Here is Attribute node with Color output and Col parameter according your Vertex Color name. Updated: List of all what can you call from the attribute node
RUben's user avatar
  • 2,209
10 votes

Bake a texture to vertex color in Blender 2.8

It's not as full-featured as the script you've posted, but I've come up with a very simple Bake-UV-to-Vertex-Colors script: ...
Zach Capalbo's user avatar
9 votes
Accepted

Bake vertex colors to texture from mesh

Setup material like this, Using emission node makes it fast: You can get vertex color data here: In bake options chose "Emit"
Crantisz's user avatar
  • 35.3k
9 votes
Accepted

Geometry Nodes output to vertex color

You need to Capture the attribute if you want to write it to every geometry element from within the domain you chose. As it stands, although you did setup the output to write data on face corners, the ...
Gorgious's user avatar
  • 31.2k
8 votes

Applying per-vertex colors to new Bmesh

Loop over face loops. ...
batFINGER's user avatar
  • 84.5k
8 votes

How can I reset a Grease Pencil object's vertex colors?

I'll expand on the other answer and suggest another solution. In version 2.92 and beyond the vertex paint operators are available for grease pencil objects. It was not the case before because it was ...
Gorgious's user avatar
  • 31.2k
8 votes
Accepted

for all objects, rename 'Vertex Colors" that has a certain name :: using python

This should work ...
scurest's user avatar
  • 10.4k
8 votes
Accepted

python code to set color attributes per vertex in blender 3.5

Color attributes have a domain and type. The reason your code doesn't work is the color_attribute_add creates a [Domain: Vertex, Type: Float Color] attribute, but ...
scurest's user avatar
  • 10.4k
7 votes
Accepted

Vertex colors are wrong value?

This is related to https://blender.stackexchange.com/a/87583/29586 The Vertex Colors are held as 8-bit sRGB values. This means that, say, 50% Red is not held as 0.5 - as the sRGB color space is ...
Rich Sedman's user avatar
  • 44.8k
7 votes
Accepted

Vertex colors loose color data

Vertex Colors are held in 8-bit sRGB format rather than 'raw' (linear) RGB. Therefore, what actually appears to be 0.5 in sRGB space actually refers to a different 'raw' value - hence the need to ...
Rich Sedman's user avatar
  • 44.8k
7 votes

How to display and use Vertex Color from OBJ model

Thanks to Carlo's comment. Meshlab did it ! I just had to import the OBJ mesh and export it as PLY. Then, I import the mesh in Blender, add a material and just check ...
snoob dogg's user avatar
7 votes
Accepted

Is it possible to use multiple active vertex colors?

You can use that attribute node in the shader editor. Type the attribute in the field at the bottom to access the channel you want.
Jakemoyo's user avatar
  • 4,525
6 votes

Dilate/expand vertex color mask?

Edit: does not work in 2.8 I propose another approach which is not vertex colors based, mainly because vertex colors influence is limited by the inner geometry of the mesh. Instead, we can use some ...
lemon's user avatar
  • 60.4k
6 votes

Vertex color gradient is not linear

The gradient is linear but not in the colourspace you are expecting - as evidenced by the following : Here the Attribute node is making the Vertex Color (Col) available to the shader. This is split ...
Rich Sedman's user avatar
  • 44.8k
6 votes
Accepted

Is there a Blender api to fill a color to a certain vertex_colors?

Set all loop vertex colors to one Use foreach set method. Example of use here creating bezier curves https://blender.stackexchange.com/a/180184/15543 ...
batFINGER's user avatar
  • 84.5k
6 votes
Accepted

How can I reset a Grease Pencil object's vertex colors?

This is a fairly common and troublesome problem when working with grease pencil objects. The issue is that, at some point while you had the GP objects selected, you entered ...
TheTrueJard's user avatar
6 votes
Accepted

Blender colour through Z vertice

The Color Ramp operates in the 0-1 range. To use a ramp to control color over the entire height of an object, no matter the size, use the Generated coordinate space. If the actual Z height is ...
Allen Simpson's user avatar
6 votes

How do I use the exact color of one part, then put it on another part?

Follow this GIF if you want to assign a colour to a different object. Hover over the base colour selection in your object and press ⌃ Ctrl + C on your keyboard to copy the colour, then hover of the ...
Ribbit12's user avatar
  • 1,619
6 votes
Accepted

How to assign a color for a single surface without changing the other side color?

If you create the thickness of the walls of your blood-vessel using a Solidify modifier, you can set material offsets for the generated faces: Here's a tube generated from a simple Bezier Curve (right)...
Robin Betts's user avatar
  • 77.5k
6 votes
Accepted

How to add color information from csv file to objects

There are several ways you could do it. Here's one: First create a material all the spheres will use. The nodes should look like: The attribute node reads a custom property on the object named ...
scurest's user avatar
  • 10.4k
5 votes

Smoothing vertex_colors values

I was developing a script for a similar purpose and it should be applicable to your situation. The script is as follows : ...
Rich Sedman's user avatar
  • 44.8k
5 votes

Turn weight paint(vertex groups) into vertex paint?

The answer is now super easy for Blender 2.9 (I have only tested with 2.91) * See bottom of post for reference images Have your target object selected and relevant vertex group ready Enter vertex ...
FJSnyman's user avatar
5 votes
Accepted

How to bake ambient occlusion into vertex colors?

Quick overview of the bake process & preview in Blender Render How to bake the ambient occlusion into vertex colors Select the object and make sure the object has a vertex color layer assigned ...
Jan Kadeřábek's user avatar
5 votes
Accepted

Flat vertex painting, or face painting?

Select faces in Edit mode Switch to Vertex Paint mode and press Face selection masking for painting button (3D view -> bottom panel -> button with cube icon (next to layers selection) Press ShiftK to ...
Jan Kadeřábek's user avatar
5 votes

List vertex colors from a bmesh

Each loop (= corner of a poly) has its own vertex color. You can print the vertex color for each corner with ...
scurest's user avatar
  • 10.4k

Only top scored, non community-wiki answers of a minimum length are eligible