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: 2822

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

See also:
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?
Tip 12663:How to transfer my project from Infraworks to Revit?
Tip 12040:PaintSelect - select objects by cursor painting - paint selection.


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:
Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin More info


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