Skip to content

Commit c7dd996

Browse files
committed
simply setup by including user setup within the module
1 parent 693d7c7 commit c7dd996

File tree

3 files changed

+17
-29
lines changed

3 files changed

+17
-29
lines changed

src/workflowtools/scripts/quickmenus/README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,6 @@ Q-menus are a set of selection and display related marking menus. Menus include
3030

3131
## Setup
3232

33-
Then add the following to your `userSetup.py` file. You may have to create the file as a new text document if it doesn't already exist.
34-
- Windows: `C:/Users/<user>/Documents/maya/scripts/userSetup.py`
35-
- Mac: `/Users/<user>/Library/Preferences/Autodesk/maya/scripts/userSetup.py`
36-
37-
**userSetup.py:**
38-
```python
39-
# enable RMB Marking Menu Hook
40-
import rmbmenuhook
41-
rmbmenuhook.enable()
42-
43-
# enable Quick Menus
44-
import quickmenus
45-
quickmenus.qmenus.enable()
46-
quickmenus.fmenus.enable()
47-
```
48-
4933
After launching Maya, a first-time setup is required for registering the hotkeys, run this python script in the Script Editor:
5034

5135
```python

src/workflowtools/scripts/rmbmenuhook/README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
A very specific util for hooking into and extending the right mouse button marking menus in Maya.
44

5-
Adding marking menus using hotkeys for most button combinations is easy, but the right mouse button (unmodified) is inextensible in vanilla Maya. This project makes it easy to conditionally add menus that can replace the RMB default marking menus.
6-
5+
Adding marking menus using hotkeys for most button combinations is easy, but the right mouse button (unmodified) is
6+
inextensible in vanilla Maya. This project makes it easy to conditionally add menus that can replace the RMB default
7+
marking menus.
78

89
## Basic Example
910

10-
A simple example would be adding a menu that displays `Switch to IK` or `Switch to FK` if an IKFK animation control is selected.
11+
A simple example would be adding a menu that displays `Switch to IK` or `Switch to FK` if an IKFK animation control is
12+
selected.
1113

1214
```python
1315
import pymel.core as pm
@@ -32,23 +34,16 @@ class IKFKSwitchMenu(rmbmenuhook.Menu):
3234
rmbmenuhook.registerMenu('IKFKSwitchMenu', IKFKSwitchMenu, 1)
3335
```
3436

35-
## Setup
36-
37-
Add the following to `userSetup.py`:
38-
39-
```python
40-
# enable RMB Marking Menu Hook
41-
import rmbmenuhook
42-
rmbmenuhook.enable()
43-
```
44-
4537
## Version 1.0.2 (2017-10-21)
38+
4639
- Adds 2018 mel overrides
4740

4841
## Version 1.0.1 (2017-05-26)
42+
4943
- Updates 2015 mel overrides
5044

5145
## Version 1.0.0 (2017-05-21)
46+
5247
- Adds 2017 mel overrides
5348
- Adds registering and unregistering menus as a replacement for finding subclasses
5449

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import rmbmenuhook
2+
import quickmenus
3+
4+
# enable RMB Marking Menu Hook
5+
rmbmenuhook.enable()
6+
7+
# enable Quick Menus
8+
quickmenus.qmenus.enable()
9+
quickmenus.fmenus.enable()

0 commit comments

Comments
 (0)