Vray Script for randomizing Object IDs and Material IDs

1 vote
Author Name: 
Ciprian Socaci - modified someone elses script for Mental Ray

This is a script we use at work. One of the guys modified a script for Mental Ray. It gives random Obj IDs and Mtl IDs to all objects and materials in your scene. Unfortunately as there are a max number of 16 material IDs, that is all you get. Remember to change 'output type' from 'Integer (no AA)' to 'Color (with AA)' to have an anti-aliased pass.

When you run this script you will have no notification or messages, but it will have worked. If you check material IDs and Object IDs you will find they have all changed.

Version Requirement: 
3DS Max and Vray
AttachmentSize
elementsvray.ms385 bytes

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
leon0101's picture

Great, I'll mention it to

Great, I'll mention it to Ciprian. Maybe he can adjust the script.

triff's picture

256

There are actually 256 MatIDs/EffectIDs, it's just only 16 are accessible in the mat editor (pretty sure they're the same thing). You can find them under Options in most VRay mats, not sure about MR.

EffectsChannel Set on here is great for working with IDs and mattes and has a randomize function: http://www.scriptspot.com/3ds-max/scripts/effectschannelset

Chief Pixel Bully | http://triff.co

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.