Announcement

Collapse
No announcement yet.

vray 3.3 - texmap_num in multisubtex map doesn't work with maxscript

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

  • vray 3.3 - texmap_num in multisubtex map doesn't work with maxscript

    Heya folks,

    I was doing a quick loader for multiple bitmaps into the multisubtex and came across a bug - the texmap_num parameter doesn't work correctly despite being listed with showproperties in maxscript - try the following code with the material editor open:

    Code:
    theMap = VRayMultiSubTex texmap_num:3
    setMeditMaterial activeMeditSlot theMap
    meditmaterial[activeMeditSlot].texmap_num = 5
    So with that it should have changed from the default value of 20 twice. Getting the value is fine but setting isn't behaving!

    Cheers,

    John

  • #2
    The texture has a method called "addSubTex n" which allows you to add n textures. There is also a method "deleteSubtex idx" which allows to delete the n-th sub-texture. These two methods should be enough to do what you need.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment

    Working...
    X