Skip to main content

All Questions

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
1 answer
150 views

How to remove unused material slots in all objects if the objects are not selected? [duplicate]

Please tell me. How to remove unused materials in all objects if the objects are not selected? I tried this code but didn't get what I wanted. This code does not remove unused materials in unselected ...
Ruslan's user avatar
  • 11
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 ...
Matt Majic's user avatar
1 vote
1 answer
93 views

Iterating through a collection and assigning a material to each object based on csv

I am trying to take the 1s and 0s in the B column, and use those to apply the mat_available (1) and the mat_occupied (0) to the planes. I am a beginner in python, so my knowledge is limited. I was ...
Furm's user avatar
  • 11
6 votes
2 answers
1k views

Print Material Color of Active Object

I feel like I'm close on this one. I am trying to print the material color of the active object. Currently it is printing a value, but when I select a new active object, it prints the same value. I'm ...
MrP's user avatar
  • 135
0 votes
1 answer
62 views

Help unbind all materials from selected object

i hope someone can help me, is it possible in python to give object e.g. "Sphere" its own materials? (single-user option) I hope someone can help me. (Blender 2.92.0)
DevilSam's user avatar
  • 141
1 vote
1 answer
250 views

diffuse color material in python error

I am trying to add materials via python (which I am new to) but I can not even get copy and pasted code from here to work. colorsys is imported and I'm using Blender 2.91. ...
mig's user avatar
  • 195
0 votes
1 answer
2k views

How do I rename all object as same as their material name?

Newbie. I have a scene with so many objects. I want to rename them at a single time same as their material name. How do I do that? Is their any script/plugin?
user avatar
2 votes
1 answer
711 views

How to toggle/highlight interactable items?

in many games the items you want to pick change form when you are near or you are aiming at them. Sometimes they change color to a translucent green, sometimes they shine more than the rest objects in ...
Lev's user avatar
  • 947