Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 29-04-2003 , 03:07 PM
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
# 2 30-04-2003 , 06:40 AM
kbrown's Avatar
Moderator
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!
# 3 30-04-2003 , 12:26 PM
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
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