MayaMan Help Contents

# MayaMan Additional Attributes

Most attributes MayaMan uses are either accessible through the MayaMan globals or per-model dialogs. However, there are some attributes that are less commonly used, that MayaMan will heed if they are present. The following page lists these attributes and tells you where to put them and how they affect the rendering.

#### EnableCameraClipping

There is a hidden bool with this name on the MayaManNugget object in your scene. When enabled (the default) MayaMan performs its a cull of objects based on the camera's view, it does this to minimize rib size and speed translation, unfortunately some types of indirect transformations fool the logic (please report any occurences to support@al.com.au) and you'll need to disable the clipping. Do so by executing this mel snippet.

``

    	setAttr MayaManNugget.EnableCameraClipping 0

#### Pass Type Information

Ribs contain a user attribute which contains the passtype, SLCodeNodes and custom shaders can take advantage of this information to modify their behaviour. The pass types are:

Passtype Attribute | Description
beauty | the top level render
shadow | any type of shadow or Z buffer run
reflection | a cube face reflection map pass
flatmirror | a flat mirror pass

The data can be accessed like this in a shader:

        uniform string passtype = "beauty";   /* assume it's a beauty pass */
        attribute("user:passtype", passtype); /* get the value */

        /* do different things based on the pass type */
        if(passtype == "shadow") {
           ...
        } else if(passtype == "flatmirror") {
           ...
        } else if(passtype == "reflection") {
           ...
        } else { /* assume it's a beauty pass */
           ...
        }

MayaMan Help Contents