Coder Social home page Coder Social logo

rush's Introduction

Rush

TabMenu-style simple command launcher for Maya

demo demo



UPDATE: A built-in command launcher is now included with Maya2023. I recommend using that one, as it is official and covers all commands by default.



demo

Features

You can ..

  • Add any commands you want
  • Repeat commands by G key (Maya's default shortcut key to repeat a command)
  • Use multiple words separated by whitespaces
  • Run in maya2022/python3 mw

Installation

Install from zip file

  1. Download zip file and extract it.

  2. Move the extracted "rush" folder to your user script directory.

     e.g. C:\Users\USER\Documents\maya\MAYA_VERSION\scripts
    
  3. Move the 'Rush.py' in rush\plug-ins directory to your maya plug-ins directory.

     e.g C:\Users\USES\Documents\maya\MAYA_VERSION\plug-ins
    
  4. Open maya and activate Rush.py in the plugin manager.

Install using git

You can also download the scripts using git.

>> cd C:\Users\YOURNAME\Documents\maya\MAYA_VERSION\scripts
>> git clone https://github.com/minoue/rush

Then, copy Rush.py to the maya plug-ins directory, and activate the plugin.

How to use

mel

rush2;

python

from maya import cmds
cmds.rush2()

You can open the hotkey editor and assign the command to any key you want.

How to add commands

It's easy to add your own commands. Just create new python file in the module directory or open existing module files, and add functions to them. Once you added functions, you have to add additional dict data which key is a command name(function name) and value is icon path. Icon paths can be maya's default icon names or absolute paths if you have your own icons.

Take a look 'sample.py'

commandDict = {}

def sampleCommand():
    print "Hello World"

commandDict['sampleCommand'] = "sphere.png"

Once you added your commands, make sure to reload the plugin.

sample

Your command should be ready.

sample

Quick access to your modules

Use "openRushModules" command

sample

Command history

Use down arrow key in a black field to show recently used commands.

sample

Additional module directory

You can use additional module directories by adding rush.json in your maya script directory.

For example,

C:\Users\YOURNAME\Documents\maya\2018\scripts\rush.json
(Make sure it's script directory under the version number directory)

rush.json

{
    "path": [
        "C:/Users/MYNAME/Dropbox/dev/maya/rushModule",
        "C:/or/wherever/you/want"
    ]
}

Standard Commands

* only some of the commans are defined

  • Common

    • File
    • Edit *
    • Create
    • Select
    • Modify
    • Display
    • Window
    • Cache
    • Arnold
  • Modelling

    • Mesh

    • Edit Mesh

    • Mesh Tools

    • Mesh Display *

    • Curves

    • Surfaces

    • Deform

    • UV

  • Rigging

    • No rigging menus are defined yet
  • Animation

    • No animation menus are defined yet
  • FX

    • No FX menus are defined yet
  • Rendering

    • Maya standard nodes

Credit

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

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.