Hi
does anybody know how to add a color to object solid mesh for specific material slot ?
When there is no Diffuse Shader then color is always white.
Blender "Diffuse" Color in Viewport
JimStar,
is it possible to add "Diffuse" colour for every material slot based on Output node?
Output node should have colour picker field to select colour that shown in the 3d Viewport for mesh that has this material attached:
bpy.data.materials["<MATERIAL_NAME>"].diffuse_color
Could you think about this feature ?
is it possible to add "Diffuse" colour for every material slot based on Output node?
Output node should have colour picker field to select colour that shown in the 3d Viewport for mesh that has this material attached:
bpy.data.materials["<MATERIAL_NAME>"].diffuse_color
Could you think about this feature ?
Be patient for me, please. I am new here.
I made simple script ( I am python rookie ) for changing color for object in selected material - it changes color in viewport to RED.
It changes colour for every FACE of every object that has attached this material name. This is what I need
Currently I do not know how to build a additional panel in Materials to select colour by Color Selector.
I will try to find out how to create it.
Now you can run it from text editor:
import bpy
print (bpy.context.object.active_material.name)
bpy.data.materials[ bpy.context.object.active_material.name ].diffuse_color=(1,0,0)
It changes colour for every FACE of every object that has attached this material name. This is what I need

Currently I do not know how to build a additional panel in Materials to select colour by Color Selector.
I will try to find out how to create it.
Now you can run it from text editor:
import bpy
print (bpy.context.object.active_material.name)
bpy.data.materials[ bpy.context.object.active_material.name ].diffuse_color=(1,0,0)
Be patient for me, please. I am new here.
Ok. I made it.
My own script that helps to change Diffuse Material Colour.
I did not make __init script for install from zip.
Just unpack and install by directly picking a file 3dViewMatColor.py
After installation it appears in Material tab panel named 3D Viewport Material Colour
Let it make you work easier !

My own script that helps to change Diffuse Material Colour.
I did not make __init script for install from zip.
Just unpack and install by directly picking a file 3dViewMatColor.py
After installation it appears in Material tab panel named 3D Viewport Material Colour
Let it make you work easier !

- Attachments
-
- 3DViewportMaterialColor.zip
- (838 Bytes) Downloaded 324 times
Be patient for me, please. I am new here.
Thanks, super useful
I wish it worked automatically by taking the color from the diffuse input of a material node 


CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
System – Windows 11
My Behance portfolio, Blender plugin FB support group
There coluld be a swich manual/auto viewport color assign 

CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
System – Windows 11
My Behance portfolio, Blender plugin FB support group