For information on dynamic attributes for mental ray custom shaders, see Dynamic Attributes in the Rendering guide.