Skip to main content

All Questions

Tagged with
2 votes
0 answers
25 views

How can I get the final evaluated material color of each face?

I want to be able to get the final evaluated color for each face regardless of what shader node setup I have. I just want to get the final color result flowing into the Base Color socket of the ...
Megan Love's user avatar
1 vote
1 answer
31 views

How to Set Object Viewport Colors Based on PBR Material Properties?

I'm trying to create a script in Blender that sets the viewport colors of objects based on the properties of their physically-based rendering (PBR) materials. However, I'm encountering difficulties in ...
Larry's user avatar
  • 11
1 vote
0 answers
19 views

How to add filters to the "Browse Material to be linked" popup?

I would like to use a UI component similar to the "Browse Material to be liked" (located in the Materials panel) in a script but a bit customized. I found how to use this one: ...
Werwack's user avatar
  • 161
2 votes
1 answer
53 views

How does the append function in python work in Blender 4?

I'm going to keep this one more focused than my last question: Appending scripts and materials from a .blend file in an addon used to look like this: ...
MisterLBlends's user avatar
0 votes
0 answers
30 views

Applying a Custom Material Around a Cylinder Doesn't Work as Expected

I'm really new to materials and Blender but I'm working on project where I want a plywood effect. But the materials are being applied via code that detects normals and assigns a material for the face ...
buildxyz's user avatar
2 votes
1 answer
55 views

Python remove unlinked nodes in all materials scene

I found this code to remove all unlinked nodes on a material selected , but I want to edit the code to remove all unlinked node in all the material on the scene, I am very bad coding but I know the ...
noel sulbaran's user avatar
0 votes
1 answer
43 views

Is there a way to change the active texture in texture paint mode using Python?

Is there a way to access the variable that is responsible for the active texture of a certain material for texture painting and change it? It is better to use the image variable itself and not an ...
Golden Dragon's user avatar
1 vote
1 answer
51 views

How to Convert Coordinate object from Coordinate Node into Mapping Node?

In the example below, I'm using an empty object that I've named "Empty XYZ" as the Coordinate Object, right in the Coordinate node into the Sphere Material (Named: "Strip Material")...
Noob Cat's user avatar
  • 1,269
0 votes
0 answers
100 views

How to set a library override on a linked material using python scripting?

I'm trying to do a library override on a material linked from an external blend file. It can be done manually through the outliner by right clicking on the material -> Library Override / Make / ...
Alexandre Labedade's user avatar
1 vote
1 answer
83 views

Swap individual material node for all materials

I have imported Google Map tiles as a single object with many materials using Blosm. By default, every material has an Emission shader applied. I would like to change this Emission node to a Diffuse ...
RadioTrout's user avatar
0 votes
0 answers
29 views

How to add Inputs and Outputs to Group Node using Python [duplicate]

So I'm trying to write code that creates a custom set of Nodes for the ShaderEditor. Code: ...
Golden Dragon's user avatar
0 votes
1 answer
38 views

Assign a custom material property to models

I need an explanation how to access and iterate over Materials in Objects. I want to add few Custom Properties in a set of files (I want to import each file, add Properties to every material in that ...
tomangelo's user avatar
0 votes
0 answers
14 views

I do not know how to indetify these filters

I was asked to implement these requirements: The overall feature is to include the following changes to the process: If the asset doesn't have a Base Color in the material, you should validate if it ...
Sergio's user avatar
  • 3
0 votes
1 answer
60 views

Coloring lots of cubes

I'm generating lot's of cubes this was (code from the solution to one of my previous question: Low level fast way to create cube). I want to add different materials with colors to the cubes, so I've ...
BroDude's user avatar
  • 15
0 votes
0 answers
55 views

What is the best approach to pass indexes to do segmentation in blender?

recently I fall in the world of blender and started working on creating syntethic data that needs to be segmented. My first approach was the following: an object (mesh) with index 0 index and objects ...
nosumable's user avatar

15 30 50 per page
1
2 3 4 5
27