Render Window image background

If I use the Render window to plot to image, how to make the backgroud transparent then? Thanks a lot!

– Dale

Thanks Dale, how to set it using some API or script then, Thanks!

got it, doc.RenderSettings.TransparentBackground = true; it works now, Thanks Dale!