I have wondered if there was a set hot key too, but could never find it, so I wrote this script.
The 1st snippet is to double the divisions.
The 2nd snippet halves the divisions, if the division number is currently 1 (lowest it can go) I double the spacing instead.
Just made the script into a mel file. Can download it here. If dropbox is blocked let me know will host somewhere else.
Save that in Documents -> Maya -> Version -> Scripts
Next add this to start up.
If you have a custom user startup just append
source GridHUD;
If you do not have one check Documents -> Maya -> Version -> scripts if you do have one. If you do just append source GridHUD; to the next line. If you dont follow the steps below.
1. Navigate to maya install directory
2. Go to Scripts
3. Copy userSetup.mel
4. Paste in Documents -> Maya -> Version -> scripts
5. Open with Notepad
6. Append this to the next free line
eval("source GridHUD.mel");
Save and run
Had to move the Grid Divisions to the next block as it was loading before the actual HUD stuff so taking their place. Still looking through the Startup stuff to see if I can find where they are declared
I know this is old but could anybody help me to modify this so it adds divisions by 1 not doubles/halves it?
I have maya set up to grid lines every 50cm and major evey 100cm so I end up with 12.5cm grids and etc using the above script and I don't know how to modify it/
Replies
$gridSize would be the length and width
$gridSpacing would be grid lines every
$gridDivisions is the divisions.
The 1st snippet is to double the divisions.
The 2nd snippet halves the divisions, if the division number is currently 1 (lowest it can go) I double the spacing instead.
I have both of them on my custom shelf, works great.
You can create HUD, to show the current divisions value of the grid?
Didnt even know you could do this Want to see if I can get it into the actual heads up Display box rather than creating one.
EDIT: Added to underneath UVs. Will wrap this into a function probably later this evening so you can put it in your startup file.
Save that in Documents -> Maya -> Version -> Scripts
Next add this to start up.
If you have a custom user startup just append
source GridHUD;
If you do not have one check Documents -> Maya -> Version -> scripts if you do have one. If you do just append source GridHUD; to the next line. If you dont follow the steps below.
1. Navigate to maya install directory
2. Go to Scripts
3. Copy userSetup.mel
4. Paste in Documents -> Maya -> Version -> scripts
5. Open with Notepad
6. Append this to the next free line
eval("source GridHUD.mel");
Save and run
Had to move the Grid Divisions to the next block as it was loading before the actual HUD stuff so taking their place. Still looking through the Startup stuff to see if I can find where they are declared
I have maya set up to grid lines every 50cm and major evey 100cm so I end up with 12.5cm grids and etc using the above script and I don't know how to modify it/