dropToolEx

Purpose

Provides a "smart" Drop Tool function that can auto-swap back to the previous tool.

Function

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.

Typical Usage

Assign this to your usual "drop tool" key (e.g. 'q') as:

dropToolEx( true );

Input

int $mode
If TRUE, swap to previous tool from Select Tool.
If FALSE, no action is taken from Select Tool.

Reload H2O MEL Scripts

Tuesday, August 15, 2000