Skip to main content

All 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 ...
shimiken's user avatar
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 ...
Harry McKenzie'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
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 ...
Gorgious's user avatar
  • 31.6k
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 ...
mienaiKnife's user avatar
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 ...
Cuppat-Student's user avatar
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 ...
op. 111's user avatar
  • 21
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 ...
manuersuper's user avatar
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 ...
Jasmine's user avatar
  • 23
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 - ...
dvendab's user avatar
  • 25
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: ...
jms2505's user avatar
  • 45
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 ...
01 Studio's user avatar
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 ...
Marcus Awbrey's user avatar
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....
Paniom's user avatar
  • 43
0 votes
1 answer
269 views

Store unique vertex ID in vertex color

Script from this answer encodes polygons ID to vertex colors: ...
Serge L's user avatar
  • 3,935

15 30 50 per page