SimplyMaya Forums

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

Home / forum / Animation / Mel Scripts & Programming / if window -ex prob! ne idea
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 29-04-2003, 03:07 PM   #1
lalamax3d
Registered User
 
Join Date: Apr 2003
Location: lahore
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default if window -ex prob! ne idea

hi,

i have just seen a video from cgw magzine and they have shown clear code with simple example....

now my maya gives syntax error........... can't find it out.......

can ne one tell.........the prob


here it is:

// declare variables
string $amx_char_vwr = "animex_char_viewer";
string $amx_char_lot = "animex_char_layout";
string $amx_char_lbx = "animex_char_listbox";

// check if window exists already
if ('window -ex $amx_char_vwr')
deleteUI $amx_char_vwr;

// creating new window now
window -w 300 -h 100 -title "ani_chr_vwr" $amx_char_vwr;
frameLayout -l "";


showWindow;
__________________
u can do it
lalamax3d is offline   Reply With Quote
Old 30-04-2003, 06:40 AM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I didn't test this out but I think your problem is this line:

if ('window -ex $amx_char_vwr')

... which should be:

if (`window -ex $amx_char_vwr`)

Notice the ' vs ` characters...
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 30-04-2003, 12:26 PM   #3
lalamax3d
Registered User
 
Join Date: Apr 2003
Location: lahore
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default it works.........

hi,

thats gr8.......................exactly................. ...

u da man........

really thnx

take care

bye
__________________
u can do it
lalamax3d 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.