Check the filterExpand command. For example: filterExpand -sm 32; // gets only edges filterExpand -sm 34; // gets only faces And then store only faces selection like this (can’t test it because I’m not on my PC): string $faces[] = ‘filterExpand -sm 34’;