Jérôme does it again

This code only assign as current renderer engine V-Ray. Simply assign via Render Setup dialog Scanline then back to V-Ray.

P. S. The code drops parameters, but I am not sure that it is enough.