Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 29-04-2003, 04: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, 07: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, 01: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

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.