ScriptSpot

Forum topic · General Scripting

VRay material in 3ds max script

By maedeh.mrdm · 2020-08-26

Description

Hi everyone,
I'm new in 3ds max script. I want to define materials based on this document(https://docs.chaosgroup.com/display/VMAX/V-Ray+Illumination+Relevance+Te…)
I defined some standard materials in 3ds max script, But I don't know How I can set Vray materials in 3ds max script.
Another problem is about map an HDR image on a plane for the window's view out. how can I map HDR image on the plane without effect on interior lighting? Should I map this image in 3ds max script?
I will appreciate it if you help me.

Bests, Maedeh.

Comments (1)

show Vray Material

DMZScripts · 2020-09-07

Hi Maedeh, the material you want to create is vraymtl()
To see the properties of this material you can type:

show (vraymtl())

Another good method to see a materials properties and class is to add it to the Compact Material Editor (eg. slot 1) and type:

show medimaterials[1]
classof medimaterials[1]