Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: UI window not specified size...?

Started 2 months ago by phix314
What are, if any, some of the no-no's that would cause a window to not follow it's -widthHeight flag? I've got a simple layout that took WAY too long to do, I swear, this UI mel is some of the worst code I've had to deal with. Completely backasswards. Here's a skinnied version of what I have. Code: proc tweakWindow(){ if(`window -exists SGTweakerWindow`){ deleteUI ...
Site: CGSociety - Society of Digital Artists  CGSociety - Society of Digital Artists - site profile
Forum: Maya MEL  Maya MEL - forum profile
Total authors: 3 authors
Total thread posts: 4 posts
Thread activity: no new posts during last week
Domain info for: cgsociety.org

Other posts in this thread:

jaydru replied 2 months ago
i think its cuz the window width and height get stored in some prefs somewhere, you can get round this by editing the -w -h flag after you do the showWindow comand Code: proc tweakWindow(){ if(`window -exists SGTweakerWindow`){ deleteUI SGTweakerWindow; } string $tweakWindow = `window -title "Tweak v 0.1" -s false SGTweakerWindow `; showWindow $tweakWindow;...

benio33 replied 2 months ago
These 2 lines of code should always appear in any window handling in MEL: if ( `window -exists windowName` ) deleteUI windowName; if ( `windowPref -exists windowName`) windowPref -remove windowName; otherwise you'll lose nerves before the end of your first window in MEL Maya keeps all window prefs for all Maya session. Of course it makes sense as it keeps your last ckeckbox...

phix314 replied 2 months ago
Beautiful! That helped with my button problems as well. Thanks for gettin back to me so soon! Take care

 

Top contributing authors

Name
Posts
phix314
2
user's latest post:
UI window not specified size...?
Published (2009-11-05 21:44:00)
Beautiful! That helped with my button problems as well. Thanks for gettin back to me so soon! Take care
jaydru
1
user's latest post:
UI window not specified size...?
Published (2009-11-05 09:49:00)
i think its cuz the window width and height get stored in some prefs somewhere, you can get round this by editing the -w -h flag after you do the showWindow comand Code: proc tweakWindow(){ if(`window -exists SGTweakerWindow`){ deleteUI SGTweakerWindow; } string $tweakWindow = `window -title "Tweak v 0.1" -s false SGTweakerWindow `; showWindow $tweakWindow; window -e -widthHeight 250 250 SGTweakerWindow; } tweakWindow();
benio33
1
user's latest post:
UI window not specified size...?
Published (2009-11-05 11:59:00)
These 2 lines of code should always appear in any window handling in MEL: if ( `window -exists windowName` ) deleteUI windowName; if ( `windowPref -exists windowName`) windowPref -remove windowName; otherwise you'll lose nerves before the end of your first window in MEL Maya keeps all window prefs for all Maya session. Of course it makes sense as it keeps your last ckeckbox selections etc., so when you're done with modifying the...

Related threads on "CGSociety - Society of Digital Artists":

Related threads on other sites:

Thread profile page for "UI window not specified size...?" on http://forums.cgsociety.org. This report page is a snippet summary view from a single thread "UI window not specified size...?", located on the Message Board at http://forums.cgsociety.org. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity