<?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 Setting TMPDIR in Maya.env is not working in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9655711#M16133</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've edited the &lt;STRONG&gt;Maya.env&lt;/STRONG&gt; file in&amp;nbsp;~/Library/Preferences/Autodesk/maya/2020&amp;nbsp;and added:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;TMPDIR = '/Volumes/NVMe Array/Caches'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After restarting Maya and using the &lt;FONT face="andale mono,times"&gt;getenv 'TMPDIR'&lt;/FONT&gt; command, the variable has not been changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried setting the variable in Maya using &lt;FONT face="andale mono,times"&gt;putenv 'TMPDIR' '/Volumes/NVMe Array/Caches'&lt;/FONT&gt;. Then, getenv DOES return the new path until I restart Maya, then the path has reverted to the default again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why this is happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Maya 2020 on macOS 10.15.6&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jul 2020 11:41:04 GMT</pubDate>
    <dc:creator>rogueninjacreative</dc:creator>
    <dc:date>2020-07-26T11:41:04Z</dc:date>
    <item>
      <title>Setting TMPDIR in Maya.env is not working</title>
      <link>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9655711#M16133</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've edited the &lt;STRONG&gt;Maya.env&lt;/STRONG&gt; file in&amp;nbsp;~/Library/Preferences/Autodesk/maya/2020&amp;nbsp;and added:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;TMPDIR = '/Volumes/NVMe Array/Caches'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After restarting Maya and using the &lt;FONT face="andale mono,times"&gt;getenv 'TMPDIR'&lt;/FONT&gt; command, the variable has not been changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried setting the variable in Maya using &lt;FONT face="andale mono,times"&gt;putenv 'TMPDIR' '/Volumes/NVMe Array/Caches'&lt;/FONT&gt;. Then, getenv DOES return the new path until I restart Maya, then the path has reverted to the default again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why this is happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Maya 2020 on macOS 10.15.6&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 11:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9655711#M16133</guid>
      <dc:creator>rogueninjacreative</dc:creator>
      <dc:date>2020-07-26T11:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting TMPDIR in Maya.env is not working</title>
      <link>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9656775#M16134</link>
      <description>&lt;P&gt;Also, I have confirmed that the Maya.env file &lt;EM&gt;is&lt;/EM&gt; being picked up by Maya.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a random variable &lt;FONT face="andale mono,times"&gt;TEST=testing&lt;/FONT&gt; to Maya.env and after loading Maya, &lt;FONT face="andale mono,times"&gt;getenv TEST&lt;/FONT&gt; &lt;EM&gt;does&lt;/EM&gt; return &lt;FONT face="andale mono,times"&gt;testing&lt;/FONT&gt;. So, the issue seems to be only with the &lt;FONT face="andale mono,times"&gt;TMPDIR&lt;/FONT&gt; environment variable.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 07:16:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9656775#M16134</guid>
      <dc:creator>rogueninjacreative</dc:creator>
      <dc:date>2020-07-27T07:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting TMPDIR in Maya.env is not working</title>
      <link>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9656823#M16135</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I just found this&lt;/STRONG&gt; in&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2020/ENU/Maya-EnvVar/files/GUID-1D8B1A57-6FA3-4494-8FEC-87DA2A38FD35-htm.html" target="_blank" rel="noopener"&gt;Setting environment variables using system commands&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;"The variables set in the operating system take priority over any settings in the Maya.env file."&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, apparently, since &lt;FONT face="andale mono,times"&gt;TMPDIR&lt;/FONT&gt; is&amp;nbsp;already set on macOS somewhere in&amp;nbsp;/var/folders/ I can't&amp;nbsp;&lt;/SPAN&gt;override it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How, then, do I make Maya store its temporary files in another location without changing &lt;FONT face="andale mono,times"&gt;TMPDIR&lt;/FONT&gt; at the system level?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 07:48:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9656823#M16135</guid>
      <dc:creator>rogueninjacreative</dc:creator>
      <dc:date>2020-07-27T07:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting TMPDIR in Maya.env is not working</title>
      <link>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9801453#M16136</link>
      <description>&lt;P&gt;&lt;FONT size="5"&gt;The solution to this is to &lt;STRONG&gt;run Maya from the command line&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A convenient approach is to create an alias in your .bash_profile (or similar) that sets the TMPDIR variable and runs the Maya executable:&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;alias maya="TMPDIR=path/to/temp /Applications/Autodesk/maya2020/Maya.app/Contents/bin/maya"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first part of the alias, "TMPDIR=path/to/temp", sets the path to the new temporary folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second part is the command "/Applications/Autodesk/maya2020/Maya.app/Contents/bin/maya" that opens Maya. Note that it is the path to the maya binary for version 2020. Adjust the version number as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This approach &lt;STRONG&gt;leaves the default TMPDIR value unchanged&lt;/STRONG&gt; for other applications and sets a new value in a separate process just for the instance of Maya that it's running.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 05:16:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9801453#M16136</guid>
      <dc:creator>rogueninjacreative</dc:creator>
      <dc:date>2020-10-14T05:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting TMPDIR in Maya.env is not working</title>
      <link>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9811852#M16137</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7221149"&gt;@rogueninjacreative&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad to hear you figured it out and thanks so much for sharing the solution! This will benefit other users in the community with the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 01:47:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/setting-tmpdir-in-maya-env-is-not-working/m-p/9811852#M16137</guid>
      <dc:creator>lynn_zhang</dc:creator>
      <dc:date>2020-10-20T01:47:02Z</dc:date>
    </item>
  </channel>
</rss>

