Announcement

Collapse
No announcement yet.

VRay 3 vs VRay 2.5 - Maxscript changes?

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

  • VRay 3 vs VRay 2.5 - Maxscript changes?

    Hi all

    Was there any changes to the maxscript names for things in VRay 3 compared to VRay 2.5?

    I understand VRay 3 has extra things, but will ALL functions etc that's in VRay 2.5 work in VRay 3?

    Except for lc number of thread which is now automatic.
    Kind Regards,
    Morne

  • #2
    Things should work the same, yes. Even if we have changed any MaxScript names, we usually add aliases with the old names for compatibility reasons.

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

    Comment


    • #3
      Good to know

      What code can I use to switch off max ray intensity, probalistic lights for 3, but to tell 2.5 to ignore it?

      Something like if maxrayintensity =! undefined, then swith it off, else just ignore it
      Kind Regards,
      Morne

      Comment


      • #4
        Try just doing something like vr = renderers.current and then showproperties vr to get a whacking great list of all the access methods vray has to maxscript - I think it's something like "options_maxrayintensity" or some such.

        Comment


        • #5
          I have this:

          Code:
          if renderers.current.options_maxRayIntensity_on != undefined then
          (
              renderers.current.options_maxRayIntensity_on=false
          )
          But VRay 2.5 gives me an error

          It should work for 3 to switch it off, but I also want it to work for 2.5 to just ignore it since 2.5 doesnt have that feature
          Same thing for
          Code:
          .options_probabilisticLights
          Last edited by Morne; 28-09-2014, 12:00 PM.
          Kind Regards,
          Morne

          Comment


          • #6
            Normally for this type of thing you'd wrap the command in a try and catch statement.

            Comment


            • #7
              so then this should work?

              Code:
              try(renderers.current.options_maxRayIntensity_on=false)catch()
              Is that correct?

              For 3 it should switch it off and for 2.5 just ignore it, or return "undefined" in the listener without an error
              Kind Regards,
              Morne

              Comment


              • #8
                Looks good alright, tried it under 2.4 and it just returned undefined instead of erroring and came back with false under 3.x.

                Comment


                • #9
                  Cool thanks John!
                  music to my ears
                  Kind Regards,
                  Morne

                  Comment

                  Working...
                  X