All Questions
Tagged with vertex-colors scripting
23
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 ...
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 ...
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
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 ...
2
votes
1
answer
2k
views
How to add color information from csv file to objects
I have a csv file with xy coordinates and an additional column that I want use as color information and set as a color ramp. Below is an example of the data I have:
Edit: if the color ramp was to go ...
0
votes
1
answer
759
views
Connect 2 nodes to Mix RGB node for all materials via python script
I want to connect an image texture node and a vertex color node to a Mix RGB node (with Multiply as blending mode and Fac set to 1), which then connects to the Base Color of my Principled BSDF node - ...
3
votes
2
answers
1k
views
List vertex colors from a bmesh
I'm working on a custom exporter for an external software.
I need to get a list of the vertex colors from a triangulated mesh.
To get the triangulated mesh I use this code:
...
3
votes
0
answers
275
views
How to access hidden value in Uvmap (UVWT)
I got a really specific question for an expert.
I learned recently there is no such thing as Vector 2 in a graphic shader. Every Vector is in reality a Vector 4. Like vertex colors are not just Vector ...
1
vote
1
answer
40
views
Help make script work on all selected obj instead of just one
Below is the code that is for flipping the vertex on an object. I want it so I can select all objects and run the script it does it to all the objects selected instead of doing them individually. If ...
0
votes
1
answer
532
views
Gradient-Coloring Vertices Based on Global Z-Loc Not Working As Expected
I tried to write my own code that changes vertex colors based on the vertex Z-location(global). Which I derived from these links:
How can I get vertex positions from a mesh?
https://blenderartists....
0
votes
1
answer
269
views
Store unique vertex ID in vertex color
Script from this answer encodes polygons ID to vertex colors:
...