Detecting mode?
I'm trying to work on a simple tool to transform the current selection, be it polygon, edge, etc. My first thought was to just check the core() for a selection of each type, but then I remembered that each mode has its own persistent selection, so that wouldn't work.
Is there a way for a script to tell what mode the document is in, or will I just have to make a pulldown to choose which selection to use?
I'm trying to work on a simple tool to transform the current selection, be it polygon, edge, etc. My first thought was to just check the core() for a selection of each type, but then I remembered that each mode has its own persistent selection, so that wouldn't work.
Is there a way for a script to tell what mode the document is in, or will I just have to make a pulldown to choose which selection to use?