函数: 选择场景种含某几种材质的所有对象.

1 fn mat_Finder mat LL =
2 (
3 aa=finditem LL (classof mat)
4 return aa
5 )
6 
7 
8 filter_List =#(VRay_材质包裹器,VRay_灯光材质,VRay_覆盖材质,VRay_混合材质,VRayMtlWrapper,VRayLightMtl,VRayOverrideMtl,VRayBlendMtl)
9 select( for i in geometry where ( classof i.material== Multimaterial and (for J in i.material where ( mat_Finder J filter_List !=0 ) collect J ).count!=0 or (mat_Finder i.material filter_List !=0 ) ) collect i )

 

posted @ 2022-08-18 14:31  站在雨中  阅读(33)  评论(0)    收藏  举报