f
f
Global SectionArticlesBookstoreDictionaryDownloadsDVDsEventsForumsGalleryJob ListingsNewsNewslettersSchools
 Advanced Search
USER: PASS:  Login  Register

Subscribe
Site Links
Home > Maya > Downloads > Mel Scripts > Rendering > Misc > Mat_Obj_Id_v01.mel Change background colorChange background colorChange background colorChange background color
Mat_Obj_Id_v01.mel 1.0.0
Creates a Material Id and Object Id render layer
Login to add a Bookmark 1 votes for an average rating of 4.00

 

UPDATED:   05/05/07  
FILE SIZE:  4 KB  
DOWNLOADED:  899  
HOMEPAGE:   http://www.Reggiefourmyle.com
LICENSE TYPE:   Freeware
PLATFORMS:    Irix  Windows  Linux  MacOS-X
Maya Versions:   6.x, 7.x, 8.x
OWNER:   ReggieFour    Author Name:  Reggie Fourmyle
User Comments
1. i tried it on maya 2009

 

DETAILS:

This script creates a Material Id and Object Id render layer. The original material assignments are maintained through the masterLayer. This makes keying any object or material in a compositing program very easy.

 

The script's steps:

1) Creates a render layer for Material Id and Object Id.
2) Creates a shader for each shader assigned to all objects for the Mat_Id layer. For the Obj_Id layer, it creates a shader for each object. Shaders are lamberts with no color and a solid incandescent value. Saturation and Value are set to 1 and hue is cycled in increments of .01 out of 1. This will create 100 unique shaders, after which point the cycler will reset.
3) Assigns the newly created shaders. For the Mat_Id layer, material assignments will be based on the object's shaders, for the Obj_Id assignments are based on every object.
4) Creates a Material bin for Mat_Id and Obj_Id shaders.

 

Known Issues:

- Your scene will have two new Material bins, but the hypershade will often only show one. Toggle between materials and bins to update the bin list or close the hypershade and re-open it.

- Currently, this script creates 2x the number of object ID shaders, making a lot more than it needs.  In they hypershade, you can Edit - Delete Unused Nodes to clean this up.  I didn't want to put this in the script itself, I may delete nodes that the user wants that aren't assigned to anything.  In a future version, I will hopefully fix this problem :)

- Transparent objects and materials will not have their transparency.
- Instances, groups and objects with per face material assignments have all caused problems in the past. They seem to be fix but beware :)
- This script uses render layers and render layers tend to be buggy, save a backup of your scene just in case.

.

Login to add a Bookmark 1 votes for an average rating of 4.00

 


Related Learning Tools
Maya Related DVDs



Mental Ray: Fundamentals
Maya Related Books



mental ray for Maya, 3ds Max, and XSI: A 3D Artist\'s Guide to Rendering
Global DVDs



Custom Props & Animation-Source Games & XSI

Misc Rendering Mel Scripts for Maya

  Top Rated
  1. quickGI.mel
  2. az_convertImages
  3. Make Lighting
  4. abLightTweaker
  5. Image sequence loop
  Most Downloaded
  1. GI_Joe
  2. FileTextureManager
  3. ATR : Maya to Photoshop Connection
  4. RenderView Extension
  5. shakeExporter.mel
   Top Forum Posts
  1. Download File and File Information Here
  2. Download File and File Information Here
  3. Download File and File Information Here
  4. Download File and File Information Here
  5. Download File and File Information Here

Featured Art

ligne Fay Angels Forever





Sponsors

Sponsor

Contact Us | Advertise | Post Jobs | Post News | Post Events | Terms