All Questions
Tagged with vertex-colors python
52
questions
0
votes
1
answer
47
views
code that works in blender 3.5 but not as expected in blender 4.1
premise
The code below is intended to duplicate an object and change the vertex color of the duplicated object.
Select the object called "ic" and run it.
Ultimately, I want to change the ...
0
votes
1
answer
117
views
How to get bmesh vertex colors in Blender 4.0?
There's several answers on how to get vertex colors here on StackExchange, but something seems to have changed in 4.0 because none of them work.
bmesh.loops.layers.color[0] returns index out of range
3
votes
0
answers
32
views
Error creating a color_attribute slot and bakes the AO onto this slot for multiple Objects
I need a script, that batch processes the selected objects, creates a color_attribute slot and bakes the AO onto this slot. This works fine with individual objects. However when I try to boundle it ...
1
vote
0
answers
42
views
How can I preserve face corner colors when doing a limited dissolve?
I have imported a model with vertex colors and plugged the Color Attribute to BSDF. Thanks to this thread I am able to merge vertices while preserving vertex colors and face corner colors by ...
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 ...
1
vote
1
answer
1k
views
How can I assign material colors to a color attribute?
For the record I'm asking this question because it was brought up by a member recently and deleted under my eyes while I was clicking on the submit answer button, but I think it was a worthy question ...
0
votes
0
answers
147
views
Converting vertex colours to UV coordinates
So I've got a colour attribute that needs to be converted into a UV map. My color attribute just so happens to only be using R and G values, and what I want is for the R value to be converted into the ...
1
vote
1
answer
110
views
How to get vertex colors efficiently?
I need to export vertex colors from Blender to a custom mesh format. To do it, I need to create a dictionary where the vertex index is a key and color is a value, as proof of concept I wrote this but ...
3
votes
1
answer
1k
views
Getting and using the selected Color Attribute
Fairly new to blender python, though have some experience with python outside of blender, I'm trying to work out why this bit of code is only ever working on the first color attribute and not the ...
1
vote
1
answer
502
views
Accessing color_attributes for every vertex in Blender script
How can I access the color_attribute stored for each vertex and store it in an array using Python in Blender 3.4? Using ...
0
votes
0
answers
811
views
How to render mesh in .ply with vertex color?
I'm quite new to blender and I'm trying to render some meshes in .ply format shown below.
...
2
votes
1
answer
192
views
BPY control what vertex color channel I include in my gltf export
I would like to export a gltf file using a specific vertex color channel name "Color_Id". Does anyone know how I could make sure this channel is exported while other vertex color channels ...
3
votes
1
answer
2k
views
python code to set color attributes per vertex in blender 3.5
I have a python script that sets vertex colors per vertex (reading the data from lists) which worked in blender3.3.
I'd like to use that script in blender 3.5 (simulations branch) but it throws an ...
0
votes
0
answers
227
views
How to set vertex color to selected faces in python?
I want to set vertex color to selected faces.
...
0
votes
1
answer
180
views
Why do Vertex paint colors look pixelated?
I'm trying to color the vertices of an object. I have list of values like this: values_list = [0.1, 0.5, 0.2, 0.4, etc...] which means the vertex with index 0 has a ...