for some reason when i execute this line of code it crashes max but only when vray is the renderer. If mental ray is the renderer it works perfectly fine. It simply just renders out the bakeToTexture elements
render rendertype:#bakeSelected vfb:off progressBar:true