<?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: Maya USD 2023 - Running usdview from a shell command on Windows 10 in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-usd-2023-running-usdview-from-a-shell-command-on-windows-10/m-p/11513286#M1750</link>
    <description>&lt;P&gt;We've found that sometimes we need to add the path to USD\lib\python to the PYTHONPATH for standalone standalone usdview to launch correctly (line 4 below):&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, note that since Maya 2023 has only python 3, the path only has "USD", not "USD2" or "USD3" like Maya 2022 had.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD
set PATH=C:\Program Files\Autodesk\Maya2023\bin;C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\bin;C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\lib;%PATH%

set PYTHONPATH=C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\lib\python

mayapy -m pip install PyOpenGL==3.1.0
mayapy "C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\bin\usdview" "Path\To\File.usda"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 16:35:11 GMT</pubDate>
    <dc:creator>tkaap2</dc:creator>
    <dc:date>2022-10-27T16:35:11Z</dc:date>
    <item>
      <title>Maya USD 2023 - Running usdview from a shell command on Windows 10</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-usd-2023-running-usdview-from-a-shell-command-on-windows-10/m-p/11511368#M1749</link>
      <description>&lt;P&gt;I'm trying to get the Activision windows explorer shell usd preview software to run, so I can preview usd files in Windows Explorer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are installers of the software for Python 2.7, 3.6 and 3.7 are available on GitHUB to download. I installed the one for 3.7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't appear to work, and to debug it, the first thing I need to do is to make sure that usdview is working properly. And to do that I followed the instructions on the Autodesk website for running usdview from a windows shell:&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/Maya-USD/files/Install-USD-for-Maya/GUID-C452B331-7C4D-4B58-A1BA-D03775F266A8-html.html" target="_blank"&gt;https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/Maya-USD/files/Install-USD-for-Maya/GUID-C452B331-7C4D-4B58-A1BA-D03775F266A8-html.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do that, I get an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import pxr.Usdviewq as Usdviewq&lt;BR /&gt;ModuleNotFoundError: No module named 'pxr'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I'm not wedded to using the Activision software to get preview of USD files working in Windows Explorer if there is a better way of doing it!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 00:51:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-usd-2023-running-usdview-from-a-shell-command-on-windows-10/m-p/11511368#M1749</guid>
      <dc:creator>pixelwash</dc:creator>
      <dc:date>2022-10-27T00:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Maya USD 2023 - Running usdview from a shell command on Windows 10</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/maya-usd-2023-running-usdview-from-a-shell-command-on-windows-10/m-p/11513286#M1750</link>
      <description>&lt;P&gt;We've found that sometimes we need to add the path to USD\lib\python to the PYTHONPATH for standalone standalone usdview to launch correctly (line 4 below):&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, note that since Maya 2023 has only python 3, the path only has "USD", not "USD2" or "USD3" like Maya 2022 had.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD
set PATH=C:\Program Files\Autodesk\Maya2023\bin;C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\bin;C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\lib;%PATH%

set PYTHONPATH=C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\lib\python

mayapy -m pip install PyOpenGL==3.1.0
mayapy "C:\Program Files\Autodesk\MayaUSD\Maya2023\&amp;lt;pluginVersion&amp;gt;\mayausd\USD\bin\usdview" "Path\To\File.usda"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 16:35:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/maya-usd-2023-running-usdview-from-a-shell-command-on-windows-10/m-p/11513286#M1750</guid>
      <dc:creator>tkaap2</dc:creator>
      <dc:date>2022-10-27T16:35:11Z</dc:date>
    </item>
  </channel>
</rss>

