Scripted custom attributes can be added to any material or texture map. Rollouts defined in these attributes will appear at the end of the Mtl Editor dialog when the material or map containing the custom attributes is selected in the Material Editor.
CAT_Debug = True
in the MAXScript listener window will expose the code in the listener when you add a custom attribute through the User Interface.