Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 31-12-2006, 09:01 AM   #1
graphiac
Subscriber
 
Join Date: Aug 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default Shortcuts?

I've just now discovered how to create shortcuts and they are very helpfull however.....
I do not have a three button mouse and in the general tab it has a button allowing you to temporarily switch you left mouse button to track which is very helpful and time saving.
The general tab is also cluttered with buttons I do not use how do I delete items from the bar? Or how do I add the track button to the custom bar? Any link or attachment giving the shortcut for the X-ray shading will also be greatly appreciated.
__________________
Cannibalism is just a friendly form of population control.
graphiac is offline   Reply With Quote
Old 31-12-2006, 09:39 AM   #2
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx for the tip about the track tool - my mate with a laptop will be thrilled..

As for the shelves, if you goto Window->Settings/Prefferences->Shelves you'll get the shelf editor. The currently selected shelf is open in the window as defalt.

If you want to clear out the general tab of all the unnecessary stuff then just delete what you don't want.

On the other hand, if you want to add the button to your own shelf there's a number of ways you can go about this.
In any case, you should select the shelf you want to use first.

1) In the case of the command having a menu option you can hold ctrl-shift while you select the menu option. This will even give you an icon in most cases..

2) In the event that there doesn't seem to be a menu option, or for custom code (like the Xray script) you need to get the commands up to the shelf using the script editor. Open the script editor, and if you know the name of the command, type it in, highlight it, an then middle-mouse drag it up to the shelf - note that LMB+RMB wil work for dragging and dropping in many cases in Maya.

Another thing that's handy to know is that everytime you press a button, you can have the command echoed in the top panel of the script editor. Great for creating shelf icons for obscure commands hidden several menus deep.

As for the XRay stuff, I use two different scripts myself. One to toggle xray for everything, another to toggle xray for the selected objects only. Each has it's advantages. Just drag each to the shelf from the script editor.

Code:
///////////////////////////////////
// Xray selected obects only
///////////////////////////////////
string $sel[];
int $temp_var[];
int $value;

	$sel = `ls -sl -dag -ap -typ surfaceShape`;
	
	for ($obj in $sel)
	{
		$temp_var = `displaySurface -q -xRay $obj`;
		$value = $temp_var[0];
		if ($value == 1)
			displaySurface -xRay 0 $obj;
		else
			displaySurface -xRay 1 $obj;
	}

///////////////////////////////////
// Xray everything
///////////////////////////////////
int $xraystat;
$xraystat = eval("modelEditor -q -xray modelPanel4");
if ($xraystat == 1) $xraystat=0;
	else $xraystat=1;
modelEditor -e -xray $xraystat modelPanel1;
modelEditor -e -xray $xraystat modelPanel2;
modelEditor -e -xray $xraystat modelPanel3;
modelEditor -e -xray $xraystat modelPanel4;
As for the icons, I just made some red cubes up and then did screen shots first with one and then with all objects xrayed. Resized to 32x32 and saved with photoshop as bmps. Copy to your icon directory then tell the shelf editor where these icons are, and voila! The grey button with mel dissapears and you've got something positively more descriptive.

Anyway, here's the icons I'm using.
Simon.
Attached Files
File Type: zip xray icons.zip (3.5 KB, 18 views)
enhzflep is offline   Reply With Quote
Old 31-12-2006, 01:55 PM   #3
graphiac
Subscriber
 
Join Date: Aug 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow awsome a world of help thanks so much the most helpfull response I've gotten
__________________
Cannibalism is just a friendly form of population control.
graphiac is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.