Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

window command change (bug?) for in Maya 2023

window command change (bug?) for in Maya 2023

InNeedOfHelp
Advocate Advocate
248 Views
0 Replies
Message 1 of 1

window command change (bug?) for in Maya 2023

InNeedOfHelp
Advocate
Advocate

I can't seem to move a window before showing it with mel in Maya 2023. For example creating a simple window with:

 

string $window = `window -title "Long Name" -ret
       -iconName "Short Name"
       -widthHeight 300 55`;
columnLayout -adjustableColumn true;
       button -label "Do Nothing";
       button -label "Close" -command ("deleteUI -window " + $window);
setParent ..;
showWindow $window;

If I close the window and want to later show it again at a specific location, in previous versions this would do the trick:

window -e -vis 1 $window;
window -e -tlc 100 100 $window;

 

However in 2023 this doesn't work, the window just appears where it was closed.

There are work arounds like evalDeferred or using show showWindow first but both of these involve the window popuping up for a frame or 2 and then snapping to the desired location, rather than just appearing where I want it to as is possible in previous versions.

0 Likes
249 Views
0 Replies
Replies (0)