SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / having trouble making x-ray hotkey
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 12-10-2005, 07:56 PM   #1
kiwi_bacon
Registered User
 
Join Date: Jan 2005
Location: New Zealand
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default having trouble making x-ray hotkey

Hi all,

I cant seem to find the x-ray category under lighting and shading in the hotkey prefrence editor.

Then I looking through all the categorys.........and still no luck, i guessing I just cant see it even though its there.

Can some please help

Thanks
__________________
mmmmm........delicious
kiwi_bacon is offline   Reply With Quote
Old 12-10-2005, 08:41 PM   #2
portermalone
Subscriber
 
Join Date: May 2005
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have to create that hot key with MEL script. If you look in the download section of SM you will find the code for that hot key(or you can search the internet). But either way you'll have to make (or find on the internet) a hot key label because the default labek will just read MEL ( i.e. instead of a colored pictured icon)
portermalone is offline   Reply With Quote
Old 12-10-2005, 09:09 PM   #3
kiwi_bacon
Registered User
 
Join Date: Jan 2005
Location: New Zealand
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks porter for your help,

ok ive downloaded the x-ray file (im kinda new to this so bare with me) but where do i put the file and how do i get it on my self so i can use it??

please help

Thanks
__________________
mmmmm........delicious
kiwi_bacon is offline   Reply With Quote
Old 13-10-2005, 05:07 AM   #4
kiwi_bacon
Registered User
 
Join Date: Jan 2005
Location: New Zealand
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Was looking in the wrong place.

But I found the answer to my question, by searching under mel scripts, dannyngan website had a scirpt that works.

I tried the simply maya one but couldnt get it to work.
__________________
mmmmm........delicious
kiwi_bacon is offline   Reply With Quote
Old 13-10-2005, 07:51 AM   #5
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

a general way to find out yourself would be to look into the Script Editor. first goto Edit and choose Clear All to have all nice and clean. then you check under the Script tab -> Echo All Commands. Script Editor would show something like -

editMenuUpdate MayaWindow|mainEditMenu;

next you toggle on X-Ray in the shading tab. Script Editor will show something like -

modelEditor -e -xray 1 modelPanel4;
// Result: modelPanel4 //
editMenuUpdate MayaWindow|mainEditMenu;

if toggled off -

modelEditor -e -xray 0 modelPanel4;
// Result: modelPanel4 //
editMenuUpdate MayaWindow|mainEditMenu;


important for you would be 2 lines of mel-

modelEditor -e -xray 1 modelPanel4;
modelEditor -e -xray 0 modelPanel4;

1st line = 1 = on
2nd line = 0 = off

just copy both lines to the shelf and you have created your own buttons within a minute. you could also create a marking menu and throw those little buttons into. use the sript Editor! it can save you tons of time for simple stuff like that.
__________________
everything starts and ends in the right place at the right time.

Last edited by Falott : 13-10-2005 at 07:55 AM.
Falott is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.