Hi, like the title says, is it possible to enter multi select mode, then select some edges and some faces in the viewport, then in MEL somehow store the selected edges in variable1 and store the faces in variable2.
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`;
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’;