dropToolEx
Provides a "smart" Drop Tool function that can auto-swap back to the previous tool.
If called while Maya has an active tool context, this script stores the context for the tool then drops the tool and switches to the Select Tool.
If subsequently called while Maya is in Select Mode, the script recalls the previous context and reactivates it.
If ($mode)
is FALSE and Maya is already in Select Mode
then no action is taken.
Assign this to your usual "drop tool" key (e.g. 'q') as:
dropToolEx( true );
int $mode