Announcement

Collapse
No announcement yet.

Adding any V-Ray lights to the scene spawn errors and all options missing

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

  • Adding any V-Ray lights to the scene spawn errors and all options missing

    I cannot add any type of V-Ray light to my scene, when I do the viewport will momentarility (like 100ms) flash the light as if it's working then it vanishes and the render goes black. My console spews out an error saying

    Code:
    Python: Traceback (most recent call last):
    File "C:\Users\XXXX\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\vray_blender \nodes\operators\misc.py", line 211, in vrayHeaderDrawSwitch
    _drawVRayNodeSelection(layout, context, snode)
    File "C:\Users\XXXXX\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\vray_blender \nodes\operators\misc.py", line 157, in _drawVRayNodeSelection
    if (not ntree) or (not getLightOutputNode(ntree)):
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\XXXXX\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\vray_blender \nodes\utils.py", line 603, in getLightOutputNode
    if node.vray_type == 'LIGHT':
    ^^^^^^^^^^^^^^
    AttributeError: 'ShaderNodeEmission' object has no attribute 'vray_type'. Did you mean: 'rna_type'?
    A similar error comes out any time I open the Data panel or Object Properties panel with a light selected. Going into the Data panel for a light shows I have no options available and the object is named wrong (seems to not spawn the proper light).

    Here is someone's V-RayRectLight panel on a youtube video:

    chrome_2024-12-15_00-55-07.png

    And here is mine:

    blender_2024-12-15_00-56-16.png

    I lack all options and it's creating a subobject called "Area.Default" rather than "VRayRectLight". Everything about lights across any option and button in the UI is broken and spews errors

  • #2
    I solved it and on the fof chance anyone has the same issue it was quite simple. I have the Light Wrangler addon and that conflicts with this.

    Comment


    • #3
      Hi, thanks for reporting this. It turns out we are not properly filtering only V-Ray nodes when processing the light's node tree. When the node tree has non-vray nodes, as in your case, this causes an error and the processing cannot continue hence the lights are not rendered correctly. I created a ticket to fix the filtering. Please be aware however that any non-vray nodes will not affect the rendered scene even after the fix.
      Iavor Vajarov
      V-Ray for Blender Developer
      chaos.com

      Comment

      Working...
      X