Linked Questions

1 vote
2 answers
311 views

Scripting alternative to editing colour based on vertex coordinates using Nodes editor

I am trying to add colour to a mesh object where the colour varies based on the z location of each vertex (similar to a heat map). I am able to do so using the nodes editor (cycles render) into ...
Gouri Shanker's user avatar
0 votes
2 answers
2k views

Vertex Paint For Multiple Objects in Blender 2.8

How can I set my favorite color to all of the selected objects? I can't attach my objects not at all. The number of objects is high and I can not adjust their color vertex one by one. Sorry for my bad ...
Mahyar Ghasemi's user avatar
3 votes
1 answer
659 views

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

Taking a cue from this question, I'm testing to make a one-color fill to a vertex_colors. Works fine, but is very slow on meshes with many polygons. ...
Noob Cat's user avatar
  • 1,222
2 votes
1 answer
2k views

Vertices—loop indices vs. unique indices

I need to set the colors of vertices from data generated by third-party simulation. To do this, I need to access the vertices by their unique indices with the Python API. I can do this with ...
user avatar
1 vote
1 answer
811 views

Color each face of a mesh with a colormap gradient depending on external data

Motivation: Post-process a finite element solver answer file (in my case FEMM). I'm creating a mesh with Python with the following code (well, my actual code is a bit more complex, but it doesn't ...
cjorssen's user avatar
  • 630
0 votes
1 answer
407 views

How to interpolate vertex colors in a cube?

I have this model made out of cubes: And I want to set the white cube some vertex colors, which correspond to the vertex's surrounding cube/cubes and interpolate between them. Note that this cube ...
MaximV's user avatar
  • 3
0 votes
1 answer
229 views

Selecting a new material slot to selected vertices

I have a few vertices selected and would like to change the colour of those vertices with Python script. This means adding a new material slot. I have tried this script, however it changes all the ...
Michael Teiniker's user avatar
2 votes
0 answers
599 views

How to color line set with vertex colors?

I would like to use vertex colors to paint an extruded line set but do not succeed to do it. In detail, I export a scene in X3D format from paraview. It consist of a panels and lines that are colored ...
abenhamou's user avatar
1 vote
0 answers
19 views

How to color or overlay on vertices via the Python api? [duplicate]

For a plugin I am making, I need to highlight the vertices that the user hovers over. I could not work out this color assignment part yet. I have tried methods then found out they were obsolete. I ...
SKB_BGPL's user avatar
1 vote
0 answers
324 views

How to Visualize Temperature data usign color map

I have a simple plane (in x,y cordinates) with 25 vertices. I have temperature data of each vertex of the plane. Now, I want to apply this temperature data onto plane and trying to get visual ...
Bhagath's user avatar
  • 71
1 vote
0 answers
866 views

convert xyz to uv and set texture color from python

How can I transform XYZ locations into UV coordinates for a mesh? I have a mesh and a data that consists of temperatures at various XYZ values on the surface of the mesh (not vertex locations). I ...
IRayTrace's user avatar
  • 349
1 vote
0 answers
418 views

Python - get RGB value from face with generated texture

I just began learning Blender Python API, not sure if what I am asking is possible. I want to write a script to distribute objects on the surface of a mesh based on RGB value of a generated texture. ...
VSB's user avatar
  • 483
0 votes
0 answers
648 views

Using Blender and PLY file, how to render a grayscale image with assigned intensities at each vertex?

I can programatically generate PLY files with RGB color values as attributes for each vertex, like below ...
John Yang's user avatar