CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2188 

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.

max
100% *  CAD 
7.2.2014    2946x  
Comments   Tell a friend
applies to: 3ds Max ·

See also:
Tip 9403:CAD formats supported in Autodesk VRED Pro.
Tip 9197:Export of 3D CAD models to Google Earth.
Tip 8597:Flashing, patchy appearance of Revit 3D models in Showcase.
Tip 8509:Unfold any 3D mesh into 2D planar form.
Tip 8427:How to set the size of camera and light icons in 3ds Max?


Back   All CAD Tips All CAD tips&tricks

Data formats supported in Autodesk InfraWorks 360. « | » Unfoldable spiral-helix sheet metal in Inventor.

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   



Featuring:
Track your time spent working on AutoCAD or Revit jobs - automatically with
CADstudio JobTime More info


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