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. Additionally, the panel can also be docked but retains the original name (polyTexturePlacementPanel1).
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.
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 is open";<br><br>}
this won't tell you if you can actually see it - only if it's open
Replies
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. Additionally, the panel can also be docked but retains the original name (polyTexturePlacementPanel1).
if you query what the parent of the window is:
and this returns anything at all you know it's open
eg:
this won't tell you if you can actually see it - only if it's open