Message 1 of 1
window command change (bug?) for in Maya 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.