Skip to content

tccoleman/rush

 
 

Repository files navigation

Rush

日本語

TabMenu-like simple command launcher for Maya (formerly miExecutor)

  • You can add any commands you want
  • Repeatable by G key

gif

Requirements

Qt.py

Installation and setup

Install from zip file

  1. Make sure to install Qt.py first.

  2. Download zip file and extract it.

  3. Move the extracted "rush" folder to your user script directory. e.g. C:\Users\YOURNAME\Documents\maya\2017\scripts

  4. Move the 'Rush.py' in rush\plug-ins directory to your maya plug-ins directory. e.g C:\Users\YOURNAME\Documents\maya\plug-ins

  5. Add the follwoing line to your userSetup.py. This is required to make your commands repeatable by G key

    import rush
  6. Open maya and activate Rush.py in the plugin manager.

Install using git

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

How to run

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.

Option

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)

How to add commands

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)

  1. Create a new file.

    Drawing
  2. Copy and paste the code from template file and edit your command as you want.

    Drawing
  3. Save the file, go back to maya, and run reload command.

    Drawing
  4. You new command should be available in the completion.

    Drawing
  5. Done.

    Drawing

Using custom module directory

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

Credit

Icons made by SimpleIcon from www.flaticon.com is licensed by CC 3.0 BY

About

Simple command launcher for maya

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%