<?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: UV Border show/hide script request in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/uv-border-show-hide-script-request/m-p/7471685#M11063</link>
    <description>&lt;P&gt;Not fancy but it ought to work since youre doing it for all assets.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;import maya.cmds as cmds

if True in cmds.polyOptions(q=1,gl=1, displayMapBorder=True):
    cmds.polyOptions(gl=True, displayMapBorder=False)
else:
    cmds.polyOptions(gl=True, displayMapBorder=True)

&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Oct 2017 17:28:49 GMT</pubDate>
    <dc:creator>landonjpginn</dc:creator>
    <dc:date>2017-10-18T17:28:49Z</dc:date>
    <item>
      <title>UV Border show/hide script request</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/uv-border-show-hide-script-request/m-p/7471053#M11062</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am not experienced in scripting. I would like to put in my shelf the UV border on/off button from UV editor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;import maya.cmds as cmds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cmds.polyOptions(gl=True, displayMapBorder=True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this script only shows the border, possible to&amp;nbsp;write a new the script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if the border&amp;nbsp;ON&amp;nbsp; then the script set them OFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if the border&amp;nbsp;OFF &amp;nbsp;then the script set them ON?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/uv-border-show-hide-script-request/m-p/7471053#M11062</guid>
      <dc:creator>artofillusionist</dc:creator>
      <dc:date>2017-10-18T14:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: UV Border show/hide script request</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/uv-border-show-hide-script-request/m-p/7471685#M11063</link>
      <description>&lt;P&gt;Not fancy but it ought to work since youre doing it for all assets.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;import maya.cmds as cmds

if True in cmds.polyOptions(q=1,gl=1, displayMapBorder=True):
    cmds.polyOptions(gl=True, displayMapBorder=False)
else:
    cmds.polyOptions(gl=True, displayMapBorder=True)

&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 17:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/uv-border-show-hide-script-request/m-p/7471685#M11063</guid>
      <dc:creator>landonjpginn</dc:creator>
      <dc:date>2017-10-18T17:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: UV Border show/hide script request</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/uv-border-show-hide-script-request/m-p/7473489#M11064</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:40:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/uv-border-show-hide-script-request/m-p/7473489#M11064</guid>
      <dc:creator>artofillusionist</dc:creator>
      <dc:date>2017-10-19T08:40:05Z</dc:date>
    </item>
  </channel>
</rss>

