select objects with vray material and reflections >0

a particular situation requires me to select all objects in scene with vray material and reflection more than 0

any thoughts

thanks

Comments

Comment viewing options

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

`

Hi, Try something like this:

clearselection()
for o in objects do (	
	VrayMaterials = getclassinstances VRayMtl target:o
	local loopmore = true
	for m in VrayMaterials while loopmore where m.Reflection != color 0 0 0 or (m.texmap_reflection != undefined and m.texmap_reflection_on == on) do (
		selectmore o
		loopmore = false
	)		
)

Best,
Pixamoon

Comment viewing options

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