Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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
    Alexander Kazandzhiev
    V-Ray for 3ds Max developer

    Comment


    • #3
      Worked great, thanks Alexander.

      - Neil

      Comment

      Working...
      X