<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Stop workspaceControl UI from appearing in Maya after a restart in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/stop-workspacecontrol-ui-from-appearing-in-maya-after-a-restart/m-p/9685591#M5606</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'm probably using the command incorrectly, but I can't see how.&amp;nbsp; I'm using workspaceControl as shown below.&amp;nbsp; The makeUI() function puts a bunch of controls together.&amp;nbsp; The UI appears properly and can be docked anywhere.&amp;nbsp; The issue is that if I dock the UI in the main maya UI and close Maya an empty UI of that workspace is docked in Maya when Maya is restarted.&amp;nbsp; When I re-run my script the ui controls fill up that empty UI -- which is understandable, but I do not want that empty UI space appearing in Maya when I restart. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What do I need to do to prevent this from happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;def initiate():&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;if cmds.workspaceControl("rsSTB",ex=1):&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp; cmds.deleteUI('rsSTB')&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;cmds.workspaceControl("rsSTB", restore=0, retain=0,floating=1, l='Toolbox', iScript = "scriptToolbox.makeUI()")&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 18:12:59 GMT</pubDate>
    <dc:creator>skiena</dc:creator>
    <dc:date>2020-08-11T18:12:59Z</dc:date>
    <item>
      <title>Stop workspaceControl UI from appearing in Maya after a restart</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/stop-workspacecontrol-ui-from-appearing-in-maya-after-a-restart/m-p/9685591#M5606</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm probably using the command incorrectly, but I can't see how.&amp;nbsp; I'm using workspaceControl as shown below.&amp;nbsp; The makeUI() function puts a bunch of controls together.&amp;nbsp; The UI appears properly and can be docked anywhere.&amp;nbsp; The issue is that if I dock the UI in the main maya UI and close Maya an empty UI of that workspace is docked in Maya when Maya is restarted.&amp;nbsp; When I re-run my script the ui controls fill up that empty UI -- which is understandable, but I do not want that empty UI space appearing in Maya when I restart. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What do I need to do to prevent this from happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;def initiate():&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;if cmds.workspaceControl("rsSTB",ex=1):&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp; cmds.deleteUI('rsSTB')&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;cmds.workspaceControl("rsSTB", restore=0, retain=0,floating=1, l='Toolbox', iScript = "scriptToolbox.makeUI()")&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 18:12:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/stop-workspacecontrol-ui-from-appearing-in-maya-after-a-restart/m-p/9685591#M5606</guid>
      <dc:creator>skiena</dc:creator>
      <dc:date>2020-08-11T18:12:59Z</dc:date>
    </item>
  </channel>
</rss>

