Hi guys, neither of these suggestions work. This one always returns false, even if the UV editor is open window -query -exists "polyTexturePlacementPanel1"; and this code just fails to find anything with an error window -query -vis "polyTexturePlacementPanel1"; this also fails to find anything window -query -vis…
I can't figure this out, I tried this, but it always returns true even if I close the window? textureWindow -query -exists "polyTexturePlacementPanel1Window";
as @throttlekitty says if you use the 'window' command instead it'll help. If you use 'window' you can also query the visibility (-vis) instead of the existance (-exists) of the window.
Try changing textureWindow to just window to use that query instead. According to the docs for textureWindow, the panel itself (polyTexturePlacementPanel1) is created on startup and exists through the whole session. The panel is then added to the window (polyTexturePlacementPanel1Window), which can exist or not.…
Here's another approach if you query what the parent of the window is: textureWindow -q -parent polyTexturePlacementPanel1; and this returns anything at all you know it's open eg: if ((size(`textureWindow -q -parent polyTexturePlacementPanel1`)) == 0){<br><br>print "window is closed";<br><br>} else {<br><br>print "window…