Hotkey X-Ray View

In this tutorial we will create hotkey for X-ray view, before we start this tutorial I already create tutorial about x-ray view with material combine with time slider.

*update: You also can watch the video here

OK, now we start this tutorial.

Step 1

Open script editor. Window > General Editor > Script Editor or click script editor icon on your right bottom screen.

hotkey xray

and you will see this.

Step 2

Create polygon or nurbs object because x-ray view just work if there is any object on scene. In this tutorial i create a polygon sphere.

Step 3

Select x-ray view (Shading > X-Ray). Now look on your script editor and copy the script and paste on your notepad, because we need this later.

and unselected the x-ray view and copy and paste the script.

this is the script:

modelEditor -e -xray 1 modelPanel4 (x-ray selected)

modelEditor -e -xray 0 modelPanel4 (x-ray unselected)

Step 4

Go to hotkey editor (window > Settings/Preferences > Hotkey Editor).

Step 5

select User on category column.

Step 6

I will create hotkey for selected x-ray view.

  • Click New
  • Write Name: XrayOn
  • Paste script on command: modelEditor -e -xray 1 modelPanel4
  • Assign key: “!” or shift + 1 (you can look unmapped key by click List All)
  • Click Assign.

Do the same step for unselected x-ray view.

Don’t forget click save, now close the hotkey editor and now time to try what we do. Press Shift + 1 for x-ray view on and press Shift + 2 for x-ray view off.

I hope this tutorial can help you, thanks has joined in my tutorial.

Incoming search terms for the article:

3ds maya tutorials searched key wood list, x ray maya, x-ray maya, maya x ray, maya 3d hotkeys, maya xray, maya xray view, x-rey maya, maya x ray script, maya x ray view

Did you enjoy this tutorial or article? If so, then subscribe to my feed by email:

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI

Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post