Introduction to Maya - Modeling Fundamentals Vol 1
This course will look at the fundamentals of modeling in Maya with an emphasis on creating good topology. We'll look at what makes a good model in Maya and why objects are modeled in the way they are.
# 1 03-03-2011 , 02:44 AM
Registered User
Join Date: Mar 2011
Posts: 18

Creating your own shortcuts?

Hi. Im very new to maya. Ive been using a very simple gridbased 3d software and am now learning maya.

I would like a shortcut that allow me to change the grid -> size -> subdivisions to my liking.

I would need a way to switch between 64/32/16/8/1. This is so I can easily create the correct sizes required for that particular game.

Thanks!

Regards
Richard

# 2 03-03-2011 , 04:32 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
If you were to go to the command line and enter this code..

Code:
grid -size 32;
it would change your grid to 32 units.

or you can assign this code that has a cute little interface I made to a custom hotkey.

Code:
{


        window -title "Grid Size Picker Thingy" -s 0 -tlb 1;
        formLayout  -w 150 -h 150;
        columnLayout -rs 5 -cal "left" -adj 1  -w 150 -h 150;

	text -l "Choose size";
	separator -st "in" -hr 1 -w 150;
        radioCollection;
        radioButton -l "1" -onc ("grid -s 1;");
        radioButton -l "8" -onc ("grid -s 8;");
        radioButton -l "16" -onc ("grid -s 16;");
        radioButton -l "32" -onc ("grid -s 32;");
        radioButton -l "64" -onc ("grid -s 64;");

        showWindow ;
        
}


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 3 03-03-2011 , 05:39 AM
Registered User
Join Date: Mar 2011
Posts: 18
Wow that is amazing. However it changes the amount of grids and not the grid-subdivision. How can I modify that script so it covers that particular variable instead?

# 4 03-03-2011 , 05:51 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Ah! I guess I skip read over the "subdivision" part. Just change the "-s" for size flag to "-d" for subdivisions.

Code:
grid -d 32;


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 5 03-03-2011 , 06:26 AM
Registered User
Join Date: Mar 2011
Posts: 18
Thanks man! You're the greatest =P

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads