turn off selected object vray material reflection

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

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jackieteh's picture

Hi i try another one for obj

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.

Regards,

Jackie Teh
website: https://www.sporadicstudio.com/

jackieteh's picture

I try this for x in

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.

Regards,

Jackie Teh
website: https://www.sporadicstudio.com/

jahman's picture

.

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's picture

jahman: Thank you very much,

jahman: Thank you very much, it work!

Regards,

Jackie Teh
website: https://www.sporadicstudio.com/

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.