Notifications
Clear all
[Closed] Material editor
Sep 09, 2015 6:17 am
Hi,
I want to apply a vrayHDRI map to a dome light via scripting. There seems to be no way to link a map from the dome light as an instance into a material slot
I dont even see how I can set the coordinates in the map parameters to Environ and the mapping to Spherical environment
Any ideas ?
b
2 Replies
Sep 09, 2015 6:17 am
Simples! I don’t usually set the coordinates mapping type, just the mapping type in the HDRI Mapping group works for me. but here i’ve done both.
-- create the map
vrHDRI = vrayHDRI maptype:2
-- set coords to environ
vrHDRI.coords.mappingType = 1
-- set to sperical environment
vrHDRI.coords.mapping = 0
-- create the light
vl = VRayLight type:1 textmap_on:true texmap:vrHDRI
-- add the map the a material slot
meditmaterials[24] = vrHDRI
-- change the name, it's instanced just fine.
vrHDRI.name = "bumholes"