select all objects with vraylight materials (incl. if its part of multi/sub mats)

Comments

Comment viewing options

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

awesome, thank you so much

awesome, thank you so much

SimonBourgeois's picture

Hi,

You can use this:

(
	UpdateSceneMaterialLib()
	local vrayLightMtlArr = #()
	for m in scenematerials do join vrayLightMtlArr (getClassInstances VRayLightMtl target:m)
	makeUniqueArray vrayLightMtlArr
	local refnodes =#()
	for m in vrayLightMtlArr do join refnodes (refs.dependentNodes m)
	makeUniqueArray refnodes
	if refnodes.count>0 do select refnodes
)
sketchupmaster's picture

No doubt. . . .

working 100% :D

Thanks,
Sketchup Master

Comment viewing options

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