<?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 Re: Is there a way to define callback when a script window closes in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10713094#M5367</link>
    <description>&lt;P&gt;It won't, the name of this thread is "&lt;SPAN class=""&gt;Is there a way to define callback when a script window closes" that code will run when the window closes. There's nothing mentioned in this thread about saving preferences. Are you a bot maybe?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 01:41:19 GMT</pubDate>
    <dc:creator>malcolm_341</dc:creator>
    <dc:date>2021-10-26T01:41:19Z</dc:date>
    <item>
      <title>Is there a way to define callback when a script window closes</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/9764892#M5362</link>
      <description>&lt;P&gt;In the document for script command 'window'. it only has a callback for minimize. But there is no way to set a callback when window close. Who knows how to make it?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 03:41:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/9764892#M5362</guid>
      <dc:creator>e_juma</dc:creator>
      <dc:date>2020-09-24T03:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to define callback when a script window closes</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10686631#M5363</link>
      <description>&lt;P&gt;I’m also looking for an answer to this question.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 20:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10686631#M5363</guid>
      <dc:creator>korama20</dc:creator>
      <dc:date>2021-10-13T20:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to define callback when a script window closes</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10692946#M5364</link>
      <description>&lt;P&gt;Yes you define it in the window creation like this&lt;/P&gt;&lt;LI-CODE lang="general"&gt;window -title myWindow -sizeable true -resizeToFitChildren true -closeCommand "myGlobalProc();" myWindow_name;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 16 Oct 2021 18:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10692946#M5364</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2021-10-16T18:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to define callback when a script window closes</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10712916#M5365</link>
      <description>&lt;P&gt;Sure it looks like this, but the myGlobalProc was just a dummy procedure to do whatever you want, rename it and put whatever code you want to execute in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;global proc myGlobalProc()
{
     print "You closed the window\n";
}

window -title myWindow -sizeable true -resizeToFitChildren true -closeCommand "myGlobalProc();" myWindow_name;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:32:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10712916#M5365</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2021-10-25T22:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to define callback when a script window closes</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10713085#M5366</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 01:44:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10713085#M5366</guid>
      <dc:creator>Hans_Redman</dc:creator>
      <dc:date>2021-10-26T01:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to define callback when a script window closes</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10713094#M5367</link>
      <description>&lt;P&gt;It won't, the name of this thread is "&lt;SPAN class=""&gt;Is there a way to define callback when a script window closes" that code will run when the window closes. There's nothing mentioned in this thread about saving preferences. Are you a bot maybe?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 01:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/is-there-a-way-to-define-callback-when-a-script-window-closes/m-p/10713094#M5367</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2021-10-26T01:41:19Z</dc:date>
    </item>
  </channel>
</rss>

