Announcement

Collapse
No announcement yet.

exclude HDR light dome reflection from the vrayplane

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

  • exclude HDR light dome reflection from the vrayplane

    Hello,
    I'm trying, without success, to get a ground plane to reflect objects in the scene but not to reflect the HDR map applied to the Vray HDR dome light.
    How can we achieve this?
    The Vrayplane has a matlwrapper to it.

    Thanks

  • #2
    With a little bit of magic...

    Change the first line to whatever your light is select your ground plane and run this maxscript

    theLight = "VrayLight001"
    vrayaddtracesets $
    append (vraygettracesets $).reflect_exclude (getnodebyname theLight)
    Maxscript made easy....
    davewortley.wordpress.com
    Follow me here:
    facebook.com/MaxMadeEasy

    If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

    Comment


    • #3
      Thanks, however I've got: -- Unknown property: "reflect_exclude" in undefined
      ***
      theLight = "VRayLight002"
      vrayaddtracesets $
      append (vraygettracesets $).reflect_exclude (getnodebyname theLight)
      -- Unknown property: "reflect_exclude" in undefined
      ***********

      Originally posted by Dave_Wortley View Post
      With a little bit of magic...

      Change the first line to whatever your light is select your ground plane and run this maxscript

      Comment


      • #4
        Did you select your ground object?
        Maxscript made easy....
        davewortley.wordpress.com
        Follow me here:
        facebook.com/MaxMadeEasy

        If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

        Comment


        • #5
          Click image for larger version

Name:	Script_error.jpg
Views:	1
Size:	187.9 KB
ID:	858744Yes, but may be I didn't use the script properly.
          Here is a copy of the screen.
          Thanks

          Comment


          • #6
            Works here.

            Put all the script in the script editor (not the maxscript listener) and press Ctrl+E.
            Maxscript made easy....
            davewortley.wordpress.com
            Follow me here:
            facebook.com/MaxMadeEasy

            If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

            Comment


            • #7
              Click image for larger version

Name:	Script_reflection.jpg
Views:	1
Size:	322.5 KB
ID:	858753
              thanks, can it be a problem with the max version? (2014).
              The script run fine (no error) but the plane still have the reflection of the HDRI visible.
              The plane is selected when CTRL+E is press.

              Thanks

              Comment


              • #8
                It looks like the Reflection include/exclude lists doesn't work with matte objects set with Wrapper material. Probably there is a bug. Could you try to use the matte properties from the right click V-Ray object properties instead. This approach works better according to my tests.
                Tashko Zashev | chaos.com
                Chaos Support Representative | contact us

                Comment


                • #9
                  Originally posted by tashko.zashev View Post
                  It looks like the Reflection include/exclude lists doesn't work with matte objects set with Wrapper material.
                  Is there a button hidden somewhere for this function? I can't see it on the User interface.

                  Comment


                  • #10
                    Originally posted by fraggle View Post
                    Is there a button hidden somewhere for this function? I can't see it on the User interface.
                    No, there is no option in the UI to do that.
                    Tashko Zashev | chaos.com
                    Chaos Support Representative | contact us

                    Comment


                    • #11
                      Maybe if you turn on 'Dim distance' for the ground plane material it will ignore the dome light.
                      Greg Geffert
                      Spectrum Brands
                      www.greggeffert.com

                      Comment


                      • #12
                        thanks to Dave and its magic maxscript!

                        Comment

                        Working...
                        X