Announcement

Collapse
No announcement yet.

vrayColor texturemap and scripting

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

  • vrayColor texturemap and scripting

    Hi,

    i'm having trouble using the vrayColor map through maxscript. I can add a vrayColor map to i.e. the diffusemap of a material. I can't alter the parameters of this vrayColor map. I get an error and max actually crashes. when i open up the material editor and have the vrayColor map rollout opened, scripting works fine. Can anyone help me with this one, or confirm the error i get?

    Code:
    obj = teapot()
    vc = vrayColor()
    obj.material = standard()
    obj.material.diffusemap = vc
    All is well up untill now. Try this next line first with the material editor and vrayColor map rollout opened. That should work just fine. Then close the material editor and do it again. When i try that, max crashes
    Code:
    vc.color = white
    This also happens with the .gamma_correction and .gamma_value properties. I haven't tested the other properties yet. My crash shows **system exception** in the listener window.
    We're using 1.5 RC4 together with max 9 (script tested on 32 bit machines)

    Maybe i'm doing it wrong, i hope so.

    Klaas

  • #2
    Code:
    obj.material.diffusemap.color= white
    crashes max just as well?
    I wonder, as i did change many things of the vray color map, and never had an issue, much less so crashes.
    Also, try changing the color BEFORE assigning the map to a diffuse slot.

    Lele
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment


    • #3
      well, i've tried to reproduce the crash on a RC3 machine, but no succes.
      changing parameters before or after assigning the material, it works as it should. I'll try more than two systems tomorrow at work to see if it's persistent throughout our company.
      We all still use RC4. Could that be the cause?

      Klaas

      Comment


      • #4
        Works fine for me in 1.5 final; I know that some versions of RC4 could crash with VRayColor in certain situations (this probably being one of them).

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

        Comment

        Working...
        X