@lovellmarc not sure about the SketchUp/Rhino version, but in Vray for 3dsMax there's an useful option in the proxy settings window called "extract mesh" (or something like that), which does exactly what you are asking for. Did you check if there's a similar option in the SU version?
@tuanminhtq said in V-Ray scripting in ruby?:
How to call this to run Vray in ruby, please help, thanks alot
VRayForSketchUp.launch_vray_render
VRayForSketchUp.launch_vray_rt_render
VRayForSketchUp.launch_vray_batch_render
Have you found a solution?