TabMenu-like simple command launcher for Maya (formerly miExecutor)
- You can add any commands you want
- Repeatable by G key
-
Make sure to install Qt.py first.
-
Download zip file and extract it.
-
Move the extracted "rush" folder to your user script directory. e.g. C:\Users\YOURNAME\Documents\maya\2017\scripts
-
Move the 'Rush.py' in rush\plug-ins directory to your maya plug-ins directory. e.g C:\Users\YOURNAME\Documents\maya\plug-ins
-
Add the follwoing line to your userSetup.py. This is required to make your commands repeatable by G key
import rush
-
Open maya and activate Rush.py in the plugin manager.
If git command is available to you, alternatively you can install using git command.
In your user script directory,
git clone https://github.com/minoue/rush.git
Then, copy Rush.py to the maya plug-ins directory
mel
rush;
in python
from maya import cmds
cmds.rush()
You can open the hotkey editor and assign the command to any key you want.
Longname | Shortname | Argument Type | Default | Properties |
---|---|---|---|---|
menu | m | bool | False | C |
For example,
from maya import cmds
cmds.rush()
from maya import cmds
cmds.rush(menu=True)
Commands can be added by editting/creating module files. For example, here is the templete script in the module directory.
class Commands(object):
commandDict = {}
def _sampleCommand(self):
print "Hello World"
commandDict['sampleCommand'] = "sphere.png"
# ^ Don't forget to add the command to the dictionary.
To add new command, just add new method to the Command class. Make sure to add underscore at the begging of the method name. Then, add new key/item to the commandDict. Key is the command name without underscore, and the item is an icon path(relative or absolute)
-
Create a new file.
-
Copy and paste the code from template file and edit your command as you want.
-
Save the file, go back to maya, and run reload command.
-
You new command should be available in the completion.
-
Done.
You can choose any directories for you modules.
Create '.rushConfig' file in your home directory and paths line by line.
eg.
/Users/XXXXXXX/Library/Preferences/Autodesk/maya/2015-x64/scripts/rush
/Users/XXXXXXX/Dropbox/dev/git/maya/extraModules