Help... Simple Script to set all VrayMtl Mats

Hello

I need a simple script to set all VrayMtl cutoff, in my scene, to 0.02.

I’ve got more than 130 Materials. Too long to setup each.

Please help…

Best regards.

Hello,

I found a simple sample to do this on CGtalk :

VrayMtlArray = for i in (getClassInstances VrayMtl) collect i
 for i in VrayMtlArray do (i.option_cutOff = 0.02)

Best regards…