Help,Cmasking by id -----material id, Use maxscript,how to write?

Hello,everyone.I have a question, render Cmasking by id -----material id, Use maxscript,how to write?

Hi Su37,

Do you want to write your own script for matID? Please provide more information about what you want to do, I think some scripts already exist for that, you might be able to do some reverse engineering on them :)!