I rewrote the original script, so it will work better. Still not perfect unfortunately.
I changed the V-Ray and Arnold part.
You can try it if you want.
Give it a shot. You can always go back to the original one.
Post is closed for comments.