ScriptSpot home

Vray Script for randomizing Object IDs and Material IDs

Downloads

3ds Max compatibility
Unknown
Report a problem
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Original version requirement
3DS Max and Vray
Legacy votes
1
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

leon0101

Tom Sproule

Credited author: Ciprian Socaci - modified someone elses script for Mental Ray

Description

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.

Comments (2)
triff

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

Reply to triff
Tom Sproule

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