View Single Post
# 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