Disable displacement in Vray Materials
September 30, 2009Анатолий:
В общем идея скрипта заключается в том,
чтобы скрипт обрабатывал все материалы в сцене и
отключал на них displacement
и устанавливал указанную maxDepth и subdivs))
A:
То что выделено устанавливайте по вкусу.
————————————————————-
In general, the idea of the script to handle all materials in the scene and
disables to them displacement
and install the specified maxDepth and subdivs.
VrayMatArray = getclassInstances VrayMtl
for i in 1 to 24 where classof MeditMaterials[i] == VrayMtl and findItem VrayMatArray MeditMaterials[i] == 0 do append VrayMatArray MeditMaterials[i]
for m in VrayMatArray do
(
- m.texmap_displacement_on = off
m.reflection_subdivs = 20
m.refraction_subdivs = 20
m.reflection_maxDepth = 10
m.refraction_maxDepth = 10
m.reflection_useInterpolation = off
m.refraction_useInterpolation = off
)–end
Для того чтобы узнать все свойства материала Vray используйте команду
show (VrayMtl()) или getPropNames VrayMtl
—————————————————————————————————-
To learn all the material properties Vray use the command
show (VrayMtl ()) or getPropNames VrayMtl





