xray script
I am working on the dragon head tutorial and I have noticed that a few times Kurt uses a shelf button for xray. I am new to maya and honestly I just hate programming. I was wondering if someone could maybe make a script to turn xray on and off for me please :-) Also, is there any way to just make a script that will turn xray on or off for the selected object, instead of the whole window?
I tried to make one on my own, by turning xray on, then going to the script editor and middle mouse dragging to the shelf. However the problem was I had to make another button to turn it off. Also it only worked in the window I made it in. (i.e. if i made it in the pesp view, it would only work for persp view, not any other view) |
1 Attachment(s)
Here you go..... just put in your my documents>maya> scripts folder.. then type in toggleXray in maya under the time line... hit enter. then select the toggleXray type and middle mouse drag it to your shelf.
If it dont work the first time just restart and past toggleXray again hit enter. Hope that is clear. |
Thanks very much Kurt
|
Then you can go into Window>Setting/Prefrences>Hotkeys and assign it to a key.
|
I can not seem to get this to work - i have a Mac if that makes any difference! any help pls guys...
|
question about toggle xRay
Quote:
I have two questions: 1. What is "..then select the toggleXray type and middle mouse drag it to your shelf" mean? Where/how can I find it? 2. In the Mech lesson, I saw the oultline of the seleted object like edges is thicker than other inner lines. Do you know where I can set it up? Thanks for your time and expertise liuima |
liuima
For the x-ray just type toggleXray in your command line after you have put the mel script in the right folder, then highlight the words then middle mouse drag it to your shelf. If things work right once you hit the new mel Icon in your shelf the geo will turn to x-ray. For the question about the poly edges you can set it up in 2 areas: 1) In your menu bar find DISPLAY> custom polygon display> option box click on highlight and where you see boarder width raise up the value to about 4.000. 2) Once you have complete 1 and you have a ploy that has boarder edges go to Display again and find polygon components and click on boarder edges until you see the edge line get brighter. Hope that helps and thanks for supporting SM. Kurt |
Hi Kurt:
Thanks a lot. Everything work Great. Have a nice day liuima |
X-Ray Script
1 Attachment(s)
Hey Guys,
Someone posted about this in another thread. Anyways, I noticed that this script didn't come with an icon, so I made one in photoshop for it. I'll upload it here in case anyone wants to use it. Hope you like it :) !MasterFool |
Re: xray script
Quote:
She's 18 and I dont really want her any more!:attn: |
I will take the Script, icon and the 18yr old first born thank you...
(I have always been greedy) :beer: |
All times are GMT. The time now is 06:45 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018