<?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: Script job in userSetup.mel freezes Maya at start. in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/script-job-in-usersetup-mel-freezes-maya-at-start/m-p/12878729#M261</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1220770"&gt;@brentmc&lt;/a&gt;Thanks! That's working, now I can get my script to trigger after Maya's been restarted which is a big improvement to the functionality of the tool. Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 15:54:55 GMT</pubDate>
    <dc:creator>malcolm_341</dc:creator>
    <dc:date>2024-07-04T15:54:55Z</dc:date>
    <item>
      <title>Script job in userSetup.mel freezes Maya at start.</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/script-job-in-usersetup-mel-freezes-maya-at-start/m-p/12876943#M259</link>
      <description>&lt;P&gt;Hi, I'm trying to start a script job when Maya starts by putting it in the userSetup.mel file. For some reason my script job keeps Maya from starting and the program is hung while loading the the lookdev plugin while also hammering the CPU I think. Any way to get this script job to run without freezing Maya? I already tried evalDeferred and it produced the same hang.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scriptJob -runOnce 0 -compressUndo 1 -event "idle" "m341_extraHUD_refreshTimer";&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 19:12:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/script-job-in-usersetup-mel-freezes-maya-at-start/m-p/12876943#M259</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2024-07-03T19:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script job in userSetup.mel freezes Maya at start.</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/script-job-in-usersetup-mel-freezes-maya-at-start/m-p/12877982#M260</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Maya will only run a single normal priority idle event each time through the event loop so having a persistent idle event can prevent lower priority idle events from running.&lt;BR /&gt;&lt;BR /&gt;So I would first suggest either changing the event to "&lt;SPAN&gt;&lt;STRONG&gt;idleVeryLow&lt;/STRONG&gt;" which will only be run if there are no other higher priority idle events. (and seems to be missing from the &lt;STRONG&gt;scriptJob&lt;/STRONG&gt; command documentation)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;There is also "&lt;STRONG&gt;idleHigh&lt;/STRONG&gt;" which always gets run (and I don't think will starve lower priority idle events) but I would recommend trying "&lt;STRONG&gt;idleVeryLow&lt;/STRONG&gt;" first.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 08:06:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/script-job-in-usersetup-mel-freezes-maya-at-start/m-p/12877982#M260</guid>
      <dc:creator>brentmc</dc:creator>
      <dc:date>2024-07-04T08:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script job in userSetup.mel freezes Maya at start.</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/script-job-in-usersetup-mel-freezes-maya-at-start/m-p/12878729#M261</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1220770"&gt;@brentmc&lt;/a&gt;Thanks! That's working, now I can get my script to trigger after Maya's been restarted which is a big improvement to the functionality of the tool. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 15:54:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/script-job-in-usersetup-mel-freezes-maya-at-start/m-p/12878729#M261</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2024-07-04T15:54:55Z</dc:date>
    </item>
  </channel>
</rss>

