CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 4001
Plex.Earth connects AutoCAD and Google Earth

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    14714×  
Prices - CAD eShop:
applies to: 3ds Max ·

See also:
Tip 12884:How to insert your 3D model into a PowerPoint presentation?
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?


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 glossary   



Featuring:
Generate hatch patterns automatically from your DWG drawings with
HGEN 2006 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.
TOPlist