找处场景中同名称的结点

--- 收集场景中同名的结点

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  



)

 

你可能感兴趣的:(找处场景中同名称的结点)