Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 15-04-2004 , 08:02 PM
cracker's Avatar
Subscriber
Join Date: Jun 2002
Location: England
Posts: 168

getting xray on the shelf

I cant get the xray option on my shelf like you do everything else??

# 2 15-04-2004 , 08:31 PM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712




2 x Modeling Challenge Winner
# 3 20-04-2004 , 09:18 PM
cracker's Avatar
Subscriber
Join Date: Jun 2002
Location: England
Posts: 168
ok I've got it downloaded now what do I do?

# 4 20-04-2004 , 09:28 PM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712
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.




2 x Modeling Challenge Winner
# 5 20-04-2004 , 09:42 PM
owmyi's Avatar
Registered User
Join Date: Jul 2003
Location: Somewhere out there.
Posts: 127
I'm getting a Syntax Error. Is it only for Maya 4.5?

# 6 20-04-2004 , 09:47 PM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712
make sure you copy the script name exactly with no spaces and dont type the (.mel) just the name of the script.




2 x Modeling Challenge Winner
# 7 21-04-2004 , 07:31 AM
cracker's Avatar
Subscriber
Join Date: Jun 2002
Location: England
Posts: 168
done all that and it still doesn't work user added image

# 8 21-04-2004 , 07:58 AM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712
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.




2 x Modeling Challenge Winner
# 9 25-04-2004 , 04:57 PM
ransick's Avatar
Subscriber
Join Date: Feb 2004
Location: Amsterdam
Posts: 731
I googled practically all over the internet but didn't find the right plugin for maya 5.0! (xray_plugin)

Anybody did ?


...
# 10 26-04-2004 , 07:05 AM
R-Tillery's Avatar
Subscriber
Join Date: May 2003
Location: Ventura California
Posts: 966
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;
}

# 11 26-04-2004 , 07:07 AM
cracker's Avatar
Subscriber
Join Date: Jun 2002
Location: England
Posts: 168
I've got one that works now

thanks user added image

# 12 26-04-2004 , 07:10 AM
owmyi's Avatar
Registered User
Join Date: Jul 2003
Location: Somewhere out there.
Posts: 127
R-Tillery, you're the man.

# 13 29-04-2004 , 05:23 PM
Subscriber
Join Date: Jun 2003
Location: Glasgow
Posts: 62

xray

Where should you middle drag it from?

# 14 29-04-2004 , 05:37 PM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712
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.




2 x Modeling Challenge Winner
# 15 29-04-2004 , 10:14 PM
R-Tillery's Avatar
Subscriber
Join Date: May 2003
Location: Ventura California
Posts: 966

Re: xray

Originally posted by stephen20
Where should you middle drag it from?

The MEL script editor in the lower right hand conor, drop it in then high light it then drag it to your tool shelf.user added image

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads