getting xray on the shelf
I cant get the xray option on my shelf like you do everything else??
|
there is a mel script right here in the download section of this site
http://www.simplymaya.com/download_p...id=10&typeid=4 you can use this on your shelf to operate the x-ray view. |
ok I've got it downloaded now what do I do?
|
ok you have to put the Mel script in your scripts folder , which if you are using windows will be in C;/Document & Settings/your user name/ My Documents/Maya.
then type the name of the script into the comand line in maya and rightclick & highlight it.Then middle mouse button drag the script to the shelf of your choice. |
I'm getting a Syntax Error. Is it only for Maya 4.5?
|
make sure you copy the script name exactly with no spaces and dont type the (.mel) just the name of the script.
|
done all that and it still doesn't work :(
|
Hmmm.... well all I can suggest is that google for a different toggle x-ray.mel and try that....sorry !
Unless someone else has any ideas. |
I googled practically all over the internet but didn't find the right plugin for maya 5.0! (xray_plugin)
Anybody did ? |
Try this one, it should do the trick.
Copy past to your MEL editor middel drag to your shelf. string $sel[]; int $temp[]; int $value; $sel = `ls -sl -dag -ap -typ surfaceShape`; for ($obj in $sel){ $temp = `displaySurface -q -xRay $obj`; $value = $temp[0]; if ($value == 1) displaySurface -xRay 0 $obj; else displaySurface -xRay 1 $obj; } |
I've got one that works now
thanks :) |
R-Tillery, you're the man.
|
xray
Where should you middle drag it from?
|
type the name of the mel in the command line i.e togglexray;
then select the name and MMB drag it to the shelf that you want it on. |
Re: xray
Quote:
|
All times are GMT. The time now is 01:04 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018