Help! Choose Material ID of C Masking ID using Max script

re = maxOps.GetCurRenderElementMgr()
re.addRenderElement (Elementlist elementname:Namelist CMasking_ID:#Material_ID)

but It doesn’t work, I don’t know how to write this part: CMasking_ID:#Material_ID

try this:

re = maxOps.GetCurRenderElementMgr()
re.addRenderElement (myRe=(CMasking_ID elementname:"CMasking_ID"))
myRe.what = 3

thank you very much. How should I deal with a similar situation when I can’t find it by interface or property.

From [https://forum.corona-renderer.com/ Maxscript - LightSelect options #msg210330](https://forum.corona-renderer.com/ Maxscript - LightSelect options #msg210330):

I usually run the “showClass” command with an additional “.” to get all the properties of that class.

for your example:
showClass "CMasking_ID*.*"

Oooooh that’s a nice little hack.

I normally spam each of show interface/interfaces/class/method/properties until I get something useful

Invalid ,Inconceivable!

Hi @SRY

This code seems to work fine for me

showClass "CMasking_ID*.*"

Make sure you are copy pasting it right.