Linked Questions

0
votes
1answer
1k 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 bpy.data....
1
vote
2answers
180 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 ...
2
votes
1answer
190 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. ...
0
votes
1answer
599 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 ...
1
vote
0answers
522 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 ...
2
votes
0answers
418 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 ...
1
vote
0answers
348 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. ...
1
vote
0answers
243 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 ...
0
votes
0answers
239 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 ...
0
votes
1answer
138 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 ...
0
votes
1answer
105 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 ...
1
vote
0answers
73 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 ...