Highlight Glossiness Reset

Is there a ruby script we can paste into the Ruby command to reset all of the highlight glossiness values to 1? Laubwerk trees all have highlight glossiness values that leave these white blowout spots on the leaves. I find that resetting the highlight glossiness to 1 fixes this. I was just hoping to automate that process.

To set all scene materials’ highlight glossiness value back to 1, please copy and paste the following code in the Ruby console:

VRay::LiveScene.active.grep(:BRDFVRayMtl).each{|p| p[:hilight_glossiness_float] = 1}
VRay.refresh_ui

Kind regards,
Peter

Nice script, thanks!

I think I remember reading somewhere that Laubwerk released an new update for their sketchup player that fixes the specular issue…anyone checked it out yet?