myLayer = LayerManager.getLayerFromName("base meshes")
myLayer.isHidden = true
however what is infact happening is the render is still drawing the layer... then only after the render finishes does the layer actually hide. This IS a pre-render script.
What I think is happening is that some internal 3dsmax method isn't getting called, between the time the script is run and the render started... like some kinda of LayerManager.refresh() or something. I don't really know why this is happening... but it's driving me nuts.
can anyone please help me figure this out?