Inspired by Metin7’s request for a new “Automator” script, I’ve written a script that allows you to change the properties of VRayMtls, VRayLightMtls & VRayFastSSS mats across the scene, selection or material editor for VRay 1.5, so I thought I’d share it with you.
Revision v1.01:
Added control for Standard & VRayMtlWrapper materials. Also fixed a bug: VRayMtlWrapper base materials weren’t accounted for in a property change.
Revision v1.03:
Removed display of unsupported properties, specifically sub-materials & maps. Added a help. Thoroughly tested this time, so hopefully no more surprises…
I’ve been scouring the net for vray documentation for the various vray classes and structures. I’m only a maxscript noob, but the place I spend most time is with vray stuff. So I thought I’d start by trying to learn that.
I learned that vray.output_on turns on the Vray VFB. this is not documented anywhere, and I found things out by trial and error. Is this the only way?
Raj
ta. that was how I discovered about the vray-frame buffer. But I arrived at that the vr.output_on after trying a few booleans that I thought fitted the bill. I was wrong a couple of times first. To me it doesn’t seem logical to make that parameter turn on the frame buffer since the name is different. I would have thought that something like vray.vrayVFB would have been the obvious choice. The documentation is sadly lacking behind the development. TO be honest I think I prefer it that way too..
Raj
The names are not always meaningful as sometimes an option starts as something, and ends up as something else; in the meantime, the maxscript name can no longer be changed in order to keep compatibility with existing scripts…
Vlado, i’d vote for a maxscript-cleanup version, even if it means putting hand to the whole lot of maxscript code already written for it.
The slight inconsistencies can be annoying as they’d often spoil elegant ways of going about things.
Minor, in a sense, but i’d love to see it relaid out nevertheless, if it isn’t too much work.