CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.091.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 9694:

Question

CAD 
 %  platform  category 
A
If you want to assign a distinct, random color to individual newly created objects in your scene in 3ds Max, setup this mode using two settings.

In Customize > Preferences > General uncheck the option "Default to By Layer for New Nodes" and confirm the dialog:

In the object creation panel then click on the color swatch and in the dialog "Object Color" check the option "Assign Random Colors":

random color hue

If you want to randomly change colors of existing objects (without changing their assigned materials), display the window "MAXScript Listener" (press the key F11) and type/copy the line (all in a single line):

for obj in objects do (obj.wirecolor = color (random 0 255) (random 0 255) (random 0 255))

Run the code by pressing [Enter]. Any additional running of this script will again change random colors for the scene objects.

max
100% *CAD
7.2.2014    26363×  
applies to: 3ds Max ·

See also:
Tip 14471:What is the Golaem app included in the Autodesk Media and Entertainment Collection?
Tip 14349:12 free material texture libraries for PBR rendering.
Tip 13541:Using Twinmotion from Revit to visualize other types of 3D scenes.
Tip 13466:Did you know that you can use 3D Orbit also in AutoCAD LT?
Tip 12884:How to insert your 3D model into a PowerPoint presentation?


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist