Search code examples
3dsmaxmaxscript

How to programatically assign random colors to objects in 3ds max?


How to programatically assign random colors to objects in 3ds max?


Solution

  • That works well if you just want to assign a random wire color. Here is some code for creating a standard material with a random diffuse color.

    for o in $* do 
    ( 
      m = standard
      m.diffuse = random white black 
      o.material = m
    )