Announcement

Collapse
No announcement yet.

Refresh VrayLightLister with MAXSCRIPT

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

  • Refresh VrayLightLister with MAXSCRIPT

    Hi all

    I have a script that changes vraylight subdivs
    The problem is that the VRayLightLister doesnt update until I refresh or close and open it.

    So I want to refresh the vraylightlister in my script if it is open. Can somebody help with some code please?
    Kind Regards,
    Morne

  • #2
    Hi Morne, try this:
    Code:
    winLL = windows.getChildHWND 0 "V-Ray Light Lister" parent:#max
    winLLRefresh = (windows.getChildHWND winLL[2] "Refresh")
    UIAccessor.PressButton winLLRefresh[1]
    Rens Heeren
    Generalist
    WEBSITE - IMDB - LINKEDIN - OSL SHADERS

    Comment


    • #3
      Or since VRayLightLister is written in maxscript you can call the same function as the event handler for the refresh button directly:
      Code:
      if vrayLLister != undefined do vrayLLister.LightInspectorSetup.rolloutSelector.changed vrayLLister.LightInspectorSetup.rolloutSelector.state
      Dan Brew

      Comment


      • #4
        Nice, didn't work for me before for some reason, good to know that works as well. : )
        Rens Heeren
        Generalist
        WEBSITE - IMDB - LINKEDIN - OSL SHADERS

        Comment


        • #5
          Thanks guys!
          That works beautifully
          Kind Regards,
          Morne

          Comment

          Working...
          X