ReTiCo icon indicating copy to clipboard operation
ReTiCo copied to clipboard

Cycles mtl: set viewport color as mtl color

Open Vinc3r opened this issue 6 years ago • 1 comments

  • [ ] diffuse node color to viewport color
  • [ ] principled node color to viewport color
  • [ ] gltf node color to viewport color
  • [ ] allow to set random viewport color mtl

Vinc3r avatar Apr 04 '18 08:04 Vinc3r

import bpy
import random

def returnRandColor():
    return random.randrange(0, 1000000) / 1000000

for mat in bpy.data.materials:
    mat.diffuse_color = (returnRandColor(), returnRandColor(), returnRandColor(), 1)

Vinc3r avatar Oct 19 '21 09:10 Vinc3r