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’;
These two lines will do this. I'm using filterExpand as a selection mask for the active selection in this case. string $faceSel[] = `filterExpand -ex 1 -sm 34`;string $edgeSel[] = `filterExpand -ex 1 -sm 32`;