Giter Club home page Giter Club logo

rush's Introduction

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

rush's People

Contributors

minoue avatar

Watchers

 avatar

Forkers

tccoleman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.