Hi, may i know how to turn off the reflection in vray material on selected object? all the material are in a multi/sub-object material.
Thank you
Regards,
Jackie Teh
Forum topic · General Scripting
By jackieteh · 2018-03-04
Hi, may i know how to turn off the reflection in vray material on selected object? all the material are in a multi/sub-object material.
Thank you
Regards,
Jackie Teh
jackieteh · 2018-03-09
Hi i try another one
for obj in selection do
(
if obj.material ==(getClassInstances VrayMtl) then
(
obj.reflection = color 0 0 0
)
)
this time it show ok in maxscript listener, but nothing change in vray material,really hope someone could help me, thank you.
jackieteh · 2018-03-08
I try this
for x in (getClassInstances VrayMtl) do
(
x.reflection = color 0 0 0
)
but it turn off all vray material reflection, i want it to turn off only the selected one, someone please help me.
.
jahman · 2018-03-12
But bear in mind that the affected materials may be applied to other objects as well and so these objects will lose their reflections too.
(
mtls = getClassInstances VrayMtl
for node in selection where node.material != undefined do (
for mtl in mtls where (findItem (refs.dependentNodes mtl) node) > 0 do mtl.option_traceReflection = false
)
)jackieteh · 2018-03-20
jahman: Thank you very much, it work!