VrayMultiSubTex can't seem to have its IDs changed through maxscript

So create a VrayMultiSubTex in slot 1 of medit.

Then type:

meditMaterials[1].texmap_num

it will return 20

now type

meditMaterials[1].texmap_num = 21

It returns 21, but it doesn’t actual add ids to the map.

Am I missing something?

- Neil

Hello Neil,

There are three methods on the VrayMultiSubTex that are used to edit the subtex list. They are:
addSubtex() - has one parameter, number of subtexmaps to add;
deleteSubtex() - you have to provide subtexmap index and optionally number of subtexmaps to delete;
deleteUnused() - deletes all disabled subtexmaps;

here is some sample script:
    meditmaterials[1] = VrayMultiSubTex()
    t=meditmaterials[1]
    t.addSubtex 45
    t.deleteSubtex 4 10
    t.deleteUnused()

Best regards,
Alexander

Worked great, thanks Alexander.

- Neil