Announcement

Collapse
No announcement yet.

[Maxscript] Error assigning light array to VrayEnvronmentFog

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

  • [Maxscript] Error assigning light array to VrayEnvronmentFog

    Code:
    fog_lights = #($'FOGLIGHT_Nav-Green', $'FOGLIGHT_Nav-Red', $'LIGHT_Nav-L', $'LIGHT_Nav-R', $'FOGLIGHT_Beacon-Bottom', $'FOGLIGHT_Beacon-Top', $'LIGHT_Strobe-L', $'LIGHT_Strobe-R', $'LIGHT_Strobe-Tail')
    
    (getAtmospheric 1).lights = fog_lights
    That script gives me the following error 90% of the time. Sometimes it works and once it does, I don't get the error anymore in that scene. Can't figure out what's going on but it feels like some kind of read only thing?

    Code:
    -- Error occurred in anonymous codeblock; filename: ; position: 727; line: 16
    -- Runtime error: Assignment failed, possible dependency loop, $VRayLight:FOGLIGHT_Nav-Green @ [-2013.063232,420.178894,67.097580]

  • #2
    I had a similar problem with VraySphereFade, when trying to set the array of gizmo.
    it worked a couple of times but most of the time it was crashing 3dsmax...

    Similar in that accessing Array inside an Atmospheric...
    Last edited by gregvfx; 29-09-2016, 11:59 PM.

    Comment


    • #3
      Hello VRaySphereFade.lights is an array, so there seems to be some problem with it we should look into. Currently you can append single objects like:
      Code:
      append (getAtmospheric 1).lights fog_lights[1]
      for example.
      Alexander Kazandzhiev
      V-Ray for 3ds Max developer

      Comment


      • #4
        Originally posted by alexander.kazandzhiev View Post
        Hello VRaySphereFade.lights is an array, so there seems to be some problem with it we should look into. Currently you can append single objects like:
        Code:
        append (getAtmospheric 1).lights fog_lights[1]
        for example.
        Okay. Thank you.

        Comment

        Working...
        X