try (closeRolloutFloater MainFloater) catch()

rollout sss "Parameters"
(
	group "Find And Select"
	(
		button btn_Findsss "VRayFastSSS2 Objects"
	)
	
	on btn_Findsss pressed do
	(
		clearselection()
		mtls = getClassInstances VRayFastSSS2
		objs = #()
		for m in mtls do join objs (refs.dependentNodes m)
		select objs
	)
)

rollout info "Info"
(
	label type01 "This script will find and select all objects which have VRayFastSSS2 materials assigned on it." pos:[5,0] width:180 height:50
)
	
MainFloater = NewRolloutFloater "Find And Select VRayFastSSS2 Objects" 200 150
addrollout sss MainFloater
addrollout info MainFloater rolledup:true