Jump to content

assigning random colors


grantw
 Share

Recommended Posts

whats the best way to assign random colours in a scene so that you can, back to the object colours you get in a scene when you fist build object without applying colours????

 

sure this is a simple process, just want to make a random object colour render that i can select objects in photoshop later. a more simplistic way of renderign out a render id pass I suppose.!!!

Link to comment
Share on other sites

whats the best way to assign random colours in a scene so that you can, back to the object colours you get in a scene when you fist build object without applying colours????

 

sure this is a simple process, just want to make a random object colour render that i can select objects in photoshop later. a more simplistic way of renderign out a render id pass I suppose.!!!

:confused:

Link to comment
Share on other sites

sorry guys it was a busy day yesterday and wasnt focusing on the job at hand!

 

right, I'm using max 7 and vray, all I want to do is create a diffuse render with objects rendered in the object colour not material colour, I know I can render out some passes in vray, but getting quite alot of noise in some of the material id passes etc.. so just want to render a default scanline render with no lighting and diffuse colors on the objects. Max assigns random object colours when you build up a scene, I have applied all materials etc to the scene( its a finished model) so I now want to revert back to the object colours for a render, not material colours (which will be the diffuse slot of the material!!!)

 

god confusing myself trying to explain something that is straight forward but just cant seem to figure it out!

Link to comment
Share on other sites

Not sure if this will help or not, but search over at scriptspot.com or neilblevins.com for some scripts that might help.

 

I ran a quick search for "random color" at scriptspot.com and found a script called cleanmaterial 1.0. Here's a description:

 

"CleanMaterial 1.0 3ds max 5 1/6/2003 Downloads: 1817

A script that simply cleans out the material editor and replaces each material with a unique name and random color.unzip the file to the root directory of max and it should install everything you need.

Written by Jonathan Jacobson."

 

http://scriptspot.com/start.htm

 

Jeff

Link to comment
Share on other sites

If the objects already have random wire colors, just assign them a "None" material and it will render the wire color.

If you need random colors, try this script:

 

for i in objects do i.material = standard diffuseColor:(random (color 0 0 0) (color 255 255 255))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...