<?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: How to configure Visual Studio Code for Maya 2019? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/12942662#M7807</link>
    <description>&lt;P&gt;I'm getting a similar error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brian_mckee_0-1722967034040.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1394945iB3073A580C93D3CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brian_mckee_0-1722967034040.png" alt="brian_mckee_0-1722967034040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried both:&lt;/P&gt;&lt;PRE&gt;commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;&lt;/PRE&gt;&lt;PRE&gt;commandPort -name "localhost:7001" -sourceType "mel";&lt;BR /&gt;&lt;BR /&gt;Maya 2023. Any Suggestions?&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Aug 2024 18:03:27 GMT</pubDate>
    <dc:creator>brian_mckee</dc:creator>
    <dc:date>2024-08-06T18:03:27Z</dc:date>
    <item>
      <title>How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/8835843#M7799</link>
      <description>&lt;P&gt;I want to write some script with vs code, but it kept reminding me:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unable to import 'maya.cmds' pylint(import-error)&lt;/P&gt;&lt;P&gt;why??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code_6toIvfuArL.png" style="width: 847px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/644600i8BAF5D24FF033ED8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code_6toIvfuArL.png" alt="Code_6toIvfuArL.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code_cfdm3fFn8e.png" style="width: 463px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/644601iE08181415596C9F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code_cfdm3fFn8e.png" alt="Code_cfdm3fFn8e.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code_FbGAdXbU7P.png" style="width: 653px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/644602iAC1B1C7A8BFB1DF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code_FbGAdXbU7P.png" alt="Code_FbGAdXbU7P.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I spent hours searching the Internet and still had no answer ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Windows 10 x64&lt;/P&gt;&lt;P&gt;Maya 2019 + devkit&lt;/P&gt;&lt;P&gt;Anaconda 2019.03 x64 (python2.7)&lt;/P&gt;&lt;P&gt;Visual Studio Code 1.35 (extensions: Python, MayaCode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 09:03:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/8835843#M7799</guid>
      <dc:creator>g2m.agent</dc:creator>
      <dc:date>2019-06-06T09:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code *Pylint* for Maya?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/9613696#M7800</link>
      <description>&lt;P&gt;I have exactly the same problem, currently in Maya 2018. Here's a little more info from my case:&lt;/P&gt;&lt;P&gt;If I do ctrl+shift+p, "Python:Select Interpreter" and set it to mayapy.exe, Pylint appears not to work at all. No errors are underlined.&lt;/P&gt;&lt;P&gt;If I set it to a different python.exe (Python 2.7) it works, but it complains about all my Maya (and MaxPlus and pymxs in my Max scripts) imports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autocomplete works perfectly for me too. The problem is only with Pylint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried&lt;/P&gt;&lt;P&gt;PYTHONPATH=C:\\Program Files\\Autodesk\\Maya2018\\Python\\Lib\\site-packages; ...&lt;/P&gt;&lt;P&gt;in an env file, pointed to by python.envFile in settings.json, but unfortunately I haven't found a way to verify that works at all.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 04:44:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/9613696#M7800</guid>
      <dc:creator>Boon_in_Oz</dc:creator>
      <dc:date>2020-07-02T04:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/10033912#M7801</link>
      <description>&lt;P&gt;Did either of you sort this out? I also am exploring using VSC for Maya 2018...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 02:29:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/10033912#M7801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-27T02:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/10034016#M7802</link>
      <description>&lt;P&gt;Yes, I found a solution!&lt;/P&gt;&lt;P&gt;You need to install &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MayaCode&lt;/STRONG&gt;&lt;/FONT&gt; and &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MayaPy&lt;/STRONG&gt;&lt;/FONT&gt; two plug-ins, and then execute this mel command in Maya:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;commandPort -n "localhost:7001" -stp "mel" -echoOutput;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, right-click in vs code-&amp;gt;Send Python Code to Maya!&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jan 2021 03:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/10034016#M7802</guid>
      <dc:creator>g2m.agent</dc:creator>
      <dc:date>2021-01-27T03:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/10722556#M7803</link>
      <description>&lt;P&gt;Watch this&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_down:"&gt;👇&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=sYi1CtKdkow" target="_blank"&gt;https://www.youtube.com/watch?v=sYi1CtKdkow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:46:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/10722556#M7803</guid>
      <dc:creator>Abdelmolkmounir1917</dc:creator>
      <dc:date>2021-10-29T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/11571037#M7804</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is there an update for Maya 2022 ?&amp;nbsp;I have established communication between VSC and Maya 2022 with :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I execute "Send Python code to Maya" I got this error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="moiamy_0-1669144449290.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1143064iB8EFF1A808CBE1C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="moiamy_0-1669144449290.png" alt="moiamy_0-1669144449290.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 19:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/11571037#M7804</guid>
      <dc:creator>moiamy</dc:creator>
      <dc:date>2022-11-22T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/11778836#M7805</link>
      <description>&lt;P&gt;Hey, fellas! Just in case someone will search help for Maya 2022 solution, here it is.&lt;BR /&gt;&lt;BR /&gt;Author of that extension suggested&amp;nbsp; next:&lt;/P&gt;&lt;P&gt;ok so one quick solution is to avoid using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-echoOutput&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;when you init the commandPort&lt;/P&gt;&lt;P&gt;so instead of this&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;you can run just this&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;commandPort -name "localhost:7001" -sourceType "mel"&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;and it works for me in latest Maya 2022.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 13:26:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/11778836#M7805</guid>
      <dc:creator>denis.chikalyuk</dc:creator>
      <dc:date>2023-02-24T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/12804018#M7806</link>
      <description>&lt;P&gt;Removing echoOutput from the commandPort command in 2022 worked for me with sending Python over the commandPort, but for some reason MEL scripts always give a syntax error&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 06:07:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/12804018#M7806</guid>
      <dc:creator>jaranalDB9F6</dc:creator>
      <dc:date>2024-05-29T06:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Visual Studio Code for Maya 2019?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/12942662#M7807</link>
      <description>&lt;P&gt;I'm getting a similar error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brian_mckee_0-1722967034040.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1394945iB3073A580C93D3CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brian_mckee_0-1722967034040.png" alt="brian_mckee_0-1722967034040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried both:&lt;/P&gt;&lt;PRE&gt;commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;&lt;/PRE&gt;&lt;PRE&gt;commandPort -name "localhost:7001" -sourceType "mel";&lt;BR /&gt;&lt;BR /&gt;Maya 2023. Any Suggestions?&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 18:03:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/m-p/12942662#M7807</guid>
      <dc:creator>brian_mckee</dc:creator>
      <dc:date>2024-08-06T18:03:27Z</dc:date>
    </item>
  </channel>
</rss>

