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.
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:
vfbLayers=(vfbControl #getLayerMgr)[1]
savedLayers=vfbLayers.saveLayersToJSON()
-- load image
vfbLayers.loadLayersFromJSON savedLayers
Best regards,
Yavor
Easy workaround. Thanks.
Welcome ![]()