Announcement

Collapse
No announcement yet.

Can I add The Light to Trace Set in VRay Next?

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

  • Can I add The Light to Trace Set in VRay Next?

    I want to control reflections on a per-object basis.

    Can I add The Light to Trace Set in VRay Next?
    It does not work when added with the vrayAddTraceSets command.

    OakCorp Japan - Yuji Yamauchi
    oakcorp.net
    v-ray.jp

  • #2
    If you wish to add trace sets to an object via MaxScript, use the following commands in the MaxScript Listener:

    m=vrayAddTraceSets $ --this would add trace sets to the selected object; you can replace $ with $Sphere002 to add an object for example

    showproperties m --this shows the available properties of the trace set

    m.reflect_exclude=#($VraySun001,$VrayLight001) --set light names in the brackets
    m.refract_exclude=#($VraySun001,$VrayLight001)
    m.reflect_exclude_type=0 --0 is exclude; 1 is include
    m.refract_exclude_type=0

    Example script, which includes only the sun in the reflections of an object:

    m=vrayAddTraceSets $Teapot001
    m.reflect_exclude_type=1
    m.reflect_exclude=#($VraySun001)
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      thank you for the advice.

      I said vrayAddTraceSets command doesn't work.
      This means that VRayLight is not excluded in Exclude mode.

      In Include mode, VRayLight becomes invisible (opposite meaning), but nothing is reflected.

      Probably a bug.

      Confirmed with V-Ray 4.20.01 3ds Max 2020
      Attached Files
      Last edited by flat; 14-08-2019, 04:05 AM.

      OakCorp Japan - Yuji Yamauchi
      oakcorp.net
      v-ray.jp

      Comment


      • #4
        Another question

        Can I exclude V-RayLight using Trace set when Glossiness is 1.0 or less?

        There is no way to disable V-RayLight's Fake Spacular on the material side.

        OakCorp Japan - Yuji Yamauchi
        oakcorp.net
        v-ray.jp

        Comment


        • #5
          My bad, the solution used to work for V-Ray 3.6, however, it seems that it does not in V-Ray NEXT. Thanks for the report. I have forwarded the information to our developers for further analysis.
          Aleksandar Hadzhiev | chaos.com
          Chaos Support Representative | contact us

          Comment


          • #6
            Originally posted by aleksandar.hadzhiev View Post
            My bad, the solution used to work for V-Ray 3.6, however, it seems that it does not in V-Ray NEXT. Thanks for the report. I have forwarded the information to our developers for further analysis.
            I had the same issue few months back ,and I've posted a scene too with comparison if that will help..please higher the priority of this
            https://forums.chaosgroup.com/forum/...exclude-lights
            -------------------------------------------------------------
            Simply, I love to put pixels together! Sounds easy right : ))
            Sketchbook-1 /Sketchbook-2 / Behance / Facebook

            Comment

            Working...
            X