CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 3192 

CAD tip CAD tip # 9694:

Question CAD 
 %  platform  category 
Q - question

Random object colors in 3ds Max.

A - answer 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.

100% *  CAD 
7.2.2014    13302×  
Prices - CAD eShop:
applies to: 3ds Max ·

See also:
Tip 12663:How to transfer my project from Infraworks to Revit?
Tip 12040:PaintSelect - select objects by cursor painting - paint selection.
Tip 11909:Using luminiscent materials in AutoCAD 3D scenes.
Tip 11590:How to replace a 3D mesh model with a grid structure?
Tip 11337:Convert 3D PDF files back to CAD models.

Back   All CAD Tips All CAD tips&tricks

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 glossary   

Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info

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