All Questions
81
questions
1
vote
1
answer
27
views
Adding a color field in the addon Panel
I wanted to add a color field to my Blender addon panel, with which I can adjust the color input of a Principled Volume node. But i´m struggling, how I can insert such a color field there and ...
1
vote
1
answer
251
views
How to render a mask image where each object gets a different color using Python?
Im generating scenes in blender, then making a 'realistic' render and a mask render for each scene. To get the mask render Im setting transparent everything that should be and changing colors of ...
0
votes
0
answers
24
views
How to create an 'external' database managed with an addon?
I have a problematic : I create multiple models but I use always the same colors. I created an addon with the colors inside a dictionnary, but when I want to update some colors, add or remove others, ...
2
votes
1
answer
47
views
Scripting for loop adding attribute incorrectly
I'm attempting to add a Color Attribute to each selected object, Here's the simple code:
...
1
vote
1
answer
41
views
How can I set the color/material of an object added/appended from another file?
It is not possible to set the color of the object added from the file. What am I doing wrong?
...
0
votes
0
answers
69
views
How to create an image in Blender with python using Blender 3.6
I want to create images with a solid color in the project folder. But I get errors like this:
...
0
votes
0
answers
84
views
Spawn Object with Random Color (Viewport Shading)
I've been stuck trying to instance objects with a random color set when the Viewport Shader color is set to Random.
bpy.context.object.color = self.color
The line ...
0
votes
1
answer
116
views
grease pencil point's vertex_color attribute different than color picker values
I've noticed that if I query the vertex_color of points in strokes created in vertex color mode in Python, it returns values that are different than the values shown in the color picker color used to ...
1
vote
1
answer
99
views
Assign different materials to different object copies
I'm trying to create two different copies of an object with different colors. The code below will create them but they always end up with the same color (1,1,0,1) (yellow).
How can I get ...
1
vote
0
answers
49
views
Any way to accordingly color separate parts of these LaTeX meshes with python?
I'm writing some functions in python which implement the latex2blender addon. Information about this addon can be found here: https://github.com/ghseeli/latex2blender
I'm able to create a few strings ...
1
vote
1
answer
465
views
save image as RGBA using python?
I'm using save() and I want the save color to be RGBA but by default it's set to RGB
I tried ImageFormatSetting.color_mode='RGBA'...
0
votes
1
answer
106
views
Change the color of a grid of cubes in Blender
I create the faces of a cubic prism using the following function:
...
0
votes
1
answer
52
views
How to invert game theme colour?
I wish to make a black/white UI theme in my current project , but setting object colour to all the UI lags the game a bit and takes forever for me to do it.
To achieve this I had to connect every ...
0
votes
1
answer
501
views
Altering face colors in the python API
There must be something that I am fundamentally missing. I am using the python API to generate a mesh and object. I am having a lot of trouble figuring out how to change the face color of the object I ...
0
votes
0
answers
337
views
How to change ColorRamp Values in python
I am not that new to blender and I am trying to create a new blender addon (will spare the details) But I need to add a random value to a colorRamp (ShaderNodeValToRGB).
When I use toolTips, it says I ...