I have a bunch of poly vertex components selected. But sometimes users might select something else along with it (a joint, another mesh, etc.). I'm trying to find a way to test against everything selected to verify it is indeed a vertex. But I can't find anything like this.
Is there a python command to do this directly?
It may be useful for your use-case to use
filterExpand
with theselectionMask
flag set to31
to return just polygon vertex components from everything that has been selected.Following is a simple sample (with some comments): Try it out with different kind of objects and components selected.
Check out filterExpand in the docs here.