Announcement

Collapse
No announcement yet.

Turn off VFB "Auto Load Layers" via maxscript?

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

  • Turn off VFB "Auto Load Layers" via maxscript?

    Is there a way to turn off the "Auto Load Layers" for the VFB history setting via maxscript? I understand the reasons why it makes sense to have it on normally but I'm trying to script the loading of a vrimg file and I need it to not load the layers with the vrimg file. This setting actually applies to all images loaded into the frame buffer via the "Load Image" menu item, not just history items. I of course can uncheck this in the settings-history tab but then it's off all of the time. If it was available via maxscript I could turn it off, load the image, then turn it back on.
    www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

  • #2
    Hello,

    Currently there's no way to control that option through MAXScript. If your goal is to load another image but keep the previous layers you can do something like this:
    Code:
    vfbLayers=(vfbControl #getLayerMgr)[1]
    savedLayers=vfbLayers.saveLayersToJSON()
    
    -- load image
    
    vfbLayers.loadLayersFromJSON savedLayers
    Best regards,
    Yavor
    Yavor Rubenov
    V-Ray for 3ds Max developer

    Comment


    • #3
      Easy workaround. Thanks.
      www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

      Comment


      • #4
        Welcome
        Yavor Rubenov
        V-Ray for 3ds Max developer

        Comment

        Working...
        X