Hi, I got the code but, that -sm 12 commands will only work with polygon objects. So, It's not going to work with NURBS curve and surfaces. To avoid that I added this kind of method or string. Do you think this is fine? GrpH(); string $selection[] = `ls -sl`; string $polyGons[] = `filterExpand -sm 12 $selection`; string…