Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Problem with MEL in Maya 2011
  RSS 2.0 ATOM  

Problem with MEL in Maya 2011
Rate this thread
 
49653
 
Permlink of this thread  
avatar
  • OJ_Rocks
  • Posted: 19 November 2010 10:58 PM
  • Total Posts: 15
  • Joined: 20 November 2010 06:49 AM

I m writing a script with a GUI now what I want is the window that I create should not be re-sizable so I used

window -"NewWindow1" -wh 200 200 -mxb 0 -s 0 newWin;
showWindow newWin;

Now when I executed this code in Maya 2008 it worked fine but when I did in Maya 2011 it still allowed me to scale the window. I want to know whether anyone else in experiencing similar problem or not and any solution to this problem please.

I tried re-installing/deleting prefs etc but didn’t work.

Thanks.



Replies: 0
avatar
  • THNKR
  • Posted: 20 November 2010 02:02 AM

put something in the window

window -"NewWindow1" -width  200 -height 200 -s false newWin;
formLayout;
showWindow newWin;


Replies: 0
avatar
  • OJ_Rocks
  • Posted: 20 November 2010 04:58 AM

THNKR 20 November 2010 10:02 AM

put something in the window

window -"NewWindow1" -width  200 -height 200 -s false newWin;
formLayout;
showWindow newWin;

This works in one way but not fully the window now doesn’t scale but Maya ruins the height and width of the window. As specified in the code above the width/height should be 200 but when I queried it in Maya after executing the code it is 256. Any solution ?



Replies: 1
/userdata/avatar/866z0bkte.jpg

Same problem here,
Maybe a crappy override between the basic GUI mel functions and qt?

Author: Wolvawab

Replied: 28 December 2010 11:35 AM