<?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 Open UV editor via Python in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9840137#M14395</link>
    <description>&lt;P&gt;Is there any way to open UV editor via Python??&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2020 14:45:09 GMT</pubDate>
    <dc:creator>introbuck</dc:creator>
    <dc:date>2020-11-02T14:45:09Z</dc:date>
    <item>
      <title>Open UV editor via Python</title>
      <link>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9840137#M14395</link>
      <description>&lt;P&gt;Is there any way to open UV editor via Python??&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:45:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9840137#M14395</guid>
      <dc:creator>introbuck</dc:creator>
      <dc:date>2020-11-02T14:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Open UV editor via Python</title>
      <link>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9840219#M14396</link>
      <description>&lt;P&gt;The runtime command to open it is TextureViewWindow, so I guess you could do something like...&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import maya.cmds as cmds

cmds.TextureViewWindow()
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Nov 2020 15:22:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9840219#M14396</guid>
      <dc:creator>fowlert</dc:creator>
      <dc:date>2020-11-02T15:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open UV editor via Python</title>
      <link>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9840805#M14397</link>
      <description>&lt;P&gt;Thank you! As i noticed the mel command of UV&amp;nbsp; is:&lt;/P&gt;&lt;PRE&gt;TextureViewWindow&lt;/PRE&gt;&lt;P&gt;and Python just added those lines:&lt;/P&gt;&lt;PRE&gt;import maya.cmds as cmds

cmds.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;So to "convert" any of standart editors (no only) to Python i have to add those lines?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 19:03:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9840805#M14397</guid>
      <dc:creator>introbuck</dc:creator>
      <dc:date>2020-11-02T19:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Open UV editor via Python</title>
      <link>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9842529#M14398</link>
      <description>&lt;P&gt;Yes, if you want to call a Maya Command then you can import maya.cmds and call one of the commands like we have there.&amp;nbsp; The other common thing you'll probably end up doing at some point is wanting to call a MEL procedure, and for that you would do something like...&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import maya.mel as mel
mel.eval('someMelProcedure()')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're trying to put together a script by looking at what you see in the Script Editor then might see a mix of commands and mel procedures.&amp;nbsp; To know what everything is you can use "whatIs".&amp;nbsp; e.g. in the script editor you can run...&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;mel.eval('whatIs "TextureViewWindow"')
# Result: Run Time Command # 

mel.eval('whatIs "toggleUIComponentVisibility"')
# Result: Mel procedure found in: D:/Program Files/Autodesk/Maya2020/scripts/startup/UIComponents.mel # 
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to call TextureViewWindow from Python you know you'll need to use maya.cmds, but if you wanted to call toggleUIComponentVisibility then you'd have to execute mel by using mel.eval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:07:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/open-uv-editor-via-python/m-p/9842529#M14398</guid>
      <dc:creator>fowlert</dc:creator>
      <dc:date>2020-11-03T13:07:09Z</dc:date>
    </item>
  </channel>
</rss>

