SimplyMaya Forums

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


SM Forums / Maya Questions / Programming / if window -ex prob! ne idea

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
 
Thread Tools
29-04-2003, 03:07 PM   #1
lalamax3d
Registered User
 
Join Date: Apr 2003
Location: lahore
Posts: 26
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
  Reply with quote
30-04-2003, 06:40 AM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
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!
  Reply with quote
30-04-2003, 12:26 PM   #3
lalamax3d
Registered User
 
Join Date: Apr 2003
Location: lahore
Posts: 26
it works.........
hi,

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

u da man........

really thnx

take care

bye
__________________
u can do it
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Management of GUI window elements Grimt Programming 3 12-04-2014 09:10 PM
2 problems: 1. Maya wont expand the window I choose and 2. My character doesnt render honomaru Maya Basics & Newbie Lounge 2 28-04-2012 10:00 PM
changing the "Quick help" window size in the maya 2012 script editor. Jouri Programming 3 27-11-2011 06:15 AM
Render View Window Size anton0078 Maya Technical Issues 2 15-11-2011 05:24 AM
asign sliderFunction to costum window Falott Programming 2 31-07-2008 12:07 AM