Go to: Synopsis. Return value. MEL examples.

Synopsis

rehash

rehash is undoable, NOT queryable, and NOT editable.

This MEL command checks the script search path for new MEL scripts. In normal operation, MEL will only read the contents of the script path once. This is much more efficient, especially when the script path spans network drives. If a new script is added to a directory on the script path, or the script path is changed, then this command should be called by the user to tell MEL to scan for the new files.

The script path is set via the environment variable MAYA_SCRIPT_PATH. It is recommended that you set this in your Maya.env file in your preferences directory.

Return value

None

MEL examples

// Rescan the search path
rehash;