<?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 [Python] Draw text in the UV editor in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/python-draw-text-in-the-uv-editor/m-p/12612269#M465</link>
    <description>&lt;P&gt;I found the following example which allows to draw text in the 3D viewport in an easy way using the Python 2.0 API: &lt;A href="https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=MAYA_API_REF_py_ref_python_2api2_2py2_ui_draw_manager_8py_example_html" target="_blank"&gt;https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=MAYA_API_REF_py_ref_python_2api2_2py2_ui_draw_manager_8py_example_html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: can the example be modified somehow such that text is drawn in the UV editor instead of the 3D viewport?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 17:49:15 GMT</pubDate>
    <dc:creator>lukasz.czyzz</dc:creator>
    <dc:date>2024-03-04T17:49:15Z</dc:date>
    <item>
      <title>[Python] Draw text in the UV editor</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/python-draw-text-in-the-uv-editor/m-p/12612269#M465</link>
      <description>&lt;P&gt;I found the following example which allows to draw text in the 3D viewport in an easy way using the Python 2.0 API: &lt;A href="https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=MAYA_API_REF_py_ref_python_2api2_2py2_ui_draw_manager_8py_example_html" target="_blank"&gt;https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=MAYA_API_REF_py_ref_python_2api2_2py2_ui_draw_manager_8py_example_html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: can the example be modified somehow such that text is drawn in the UV editor instead of the 3D viewport?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 17:49:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/python-draw-text-in-the-uv-editor/m-p/12612269#M465</guid>
      <dc:creator>lukasz.czyzz</dc:creator>
      <dc:date>2024-03-04T17:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: [Python] Draw text in the UV editor</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/python-draw-text-in-the-uv-editor/m-p/12650300#M466</link>
      <description>&lt;P&gt;Ok, after a few weeks of searching it looks like the only option for drawing in the UV Editor is using the `MPxTexContext` class and its `drawFeedback` method. Drawables which are defined in that method are in fact drawn in the UV Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT it looks like the `MPxTexContext` class is not exposed in the Python API. So it turns out I will have to move a subset of plugin functionalities to C++ and pass data from Python to C++ somehow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Autodesk for not exposing something which seems to be the only option for UV Editor drawing to Python&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 10:13:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/python-draw-text-in-the-uv-editor/m-p/12650300#M466</guid>
      <dc:creator>lukasz.czyzz</dc:creator>
      <dc:date>2024-03-19T10:13:31Z</dc:date>
    </item>
  </channel>
</rss>

