找处场景中同名称的结点

--- 收集场景中同名的结点
fn getSelEqualNme sel =
(
  	zong =#()
	for i in sel do 
	(
		append zong i.name 
	)
	equalname =#()
	namep =#()
	for i in zong do 
	(
		if findItem equalname i ==0 then 
		(
			append equalname  i
		)else 
		(
			append namep i
		)
		
	)
	onlyname =#()
	if namep .count>0 then 
	(
		for i in namep do 
		(
			if findItem onlyname  i ==0 then 
			(
				append onlyname  i 
			)
		)
	)
	 engarraynode =#()
 	 for i in 1 to onlyname.count  do 
 	 (
 	 	   ccname =  (execute("$"+"'"+onlyname[i]+"'"+"*")) as Array 

		   		append engarraynode  ccname
 	 	  
 	 )
	 return engarraynode  

)

 

posted on 2012-07-09 12:17  盖天00  阅读(158)  评论(0编辑  收藏  举报

导航