<?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: Mel script, is it possible to identify UV shells and store them in an array? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113690#M7037</link>
    <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/Commands/polyEvaluate.html#flaguvShellIds" target="_blank"&gt;http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/Commands/polyEvaluate.html#flaguvShellIds&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 02:20:58 GMT</pubDate>
    <dc:creator>olarn</dc:creator>
    <dc:date>2019-10-29T02:20:58Z</dc:date>
    <item>
      <title>Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113553#M7036</link>
      <description>&lt;P&gt;Hi there, I'm an artist learning mel. I need to store the selected UV shells into an array, but I can't find anything in the documentation or online. Is there really no concept of a UV shell index in Maya. Basically I need to perform an action on each shell so I need to store them in in an array so I can select them one at a time. For example, select first shell, scale it by 50%, select second shell scale by 50%, etc. That's not actually what I need to do, but if that's possible that will solve my more complex problem.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 23:41:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113553#M7036</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2019-10-28T23:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113690#M7037</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/Commands/polyEvaluate.html#flaguvShellIds" target="_blank"&gt;http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/Commands/polyEvaluate.html#flaguvShellIds&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 02:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113690#M7037</guid>
      <dc:creator>olarn</dc:creator>
      <dc:date>2019-10-29T02:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113701#M7038</link>
      <description>&lt;P&gt;I already looked at that before posting, unless I'm not understanding how to use that command it's pretty much useless since there's no way to select anything that command prints out. All it does is tell you what index the UV shell is, but there is no way to select that index because UV shells don't exist as far as I can tell?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 02:43:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113701#M7038</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2019-10-29T02:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113723#M7039</link>
      <description>&lt;P&gt;Im afraid that you're going to have to construct your own uv shell look up from those list.&lt;/P&gt;&lt;P&gt;Event maya default "expand uv to uv shell" script have to resort to pretty roundabout way to get those lists.&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\Maya201X\scripts\others\polySelectBorderShell.mel&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 03:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113723#M7039</guid>
      <dc:creator>olarn</dc:creator>
      <dc:date>2019-10-29T03:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113729#M7040</link>
      <description>&lt;P&gt;I don't think I'm advanced enough, If I could find a way to assign the index to a variable then I might be able to work it out I did find this command which works, but for some reason I can't select it after without getting an error?&lt;/P&gt;&lt;P&gt;$tempShell = `texGetShells`;&lt;BR /&gt;select $tempShell;&lt;BR /&gt;// Error: line 1: Invalid attribute name: pPlane1.map[1] pPlane1.map[5:6] pPlane1.map[11] //&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 03:23:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113729#M7040</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2019-10-29T03:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113841#M7041</link>
      <description>&lt;P&gt;Because all those lines are jammed in to the first item of tempShell string array instead of one each as "select" expected.&lt;/P&gt;&lt;PRE&gt;$tempShell = `texGetShells`; // type is string[]&lt;BR /&gt;tokenize($tempShell[0], $tempShell); // ["xx.map[0] xx.map[1]",] -&amp;gt; ["xx.map[0]","xx.map[1]"]&lt;BR /&gt;select $tempShell;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Oct 2019 05:50:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9113841#M7041</guid>
      <dc:creator>olarn</dc:creator>
      <dc:date>2019-10-29T05:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9115460#M7042</link>
      <description>&lt;P&gt;Oh wow, I'm not familiar with the tokenize command yet I'll need to read the docs on this today. This looks like I'll need to create a counter and then loop through all the items and update the counter and use tekenize to store each UV shell as an array of UVs I can then select and run my code on. Does that sound like the right way to go?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 18:05:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9115460#M7042</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2019-10-29T18:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9115699#M7043</link>
      <description>&lt;P&gt;Here's how I ended up solving it thanks to &lt;FONT&gt;&lt;FONT&gt;olarn&lt;/FONT&gt;&lt;/FONT&gt; for tokenizing it for me. Still not confident with that command. In this example the for loop performs a rotate on each UV shell individual and then ends when it reaches the number of UV shells the user had originally selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ConvertSelectionToUVShell;&lt;BR /&gt;$shellUVs = `ls -sl`;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$findShells = `texGetShells`;&lt;BR /&gt;$numbShells = `size $findShells`;&lt;BR /&gt;$shellIndex = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ($item = 0; $item &amp;lt; $numbShells; ++$item)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select $shellUVs;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $findShells = `texGetShells`;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tokenize($findShells[$shellIndex], $findShells); // ["xx.map[0] xx.map[1]",] -&amp;gt; ["xx.map[0]","xx.map[1]"]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select $findShells;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyEditUV -pu 0.25 -pv 0.75 -a -14.449228 -rr 1 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $shellIndex = $shellIndex + 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 20:20:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9115699#M7043</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2019-10-29T20:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9116028#M7044</link>
      <description>&lt;P&gt;If you've just beginning to script, I would recommend learning python instead.&lt;/P&gt;&lt;P&gt;In mel you'll spend majority of the time fighting with the language itself..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just fyi legacy mel code can be call to and from python&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/eval.html" target="_blank" rel="noopener"&gt;http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/eval.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 01:13:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9116028#M7044</guid>
      <dc:creator>olarn</dc:creator>
      <dc:date>2019-10-30T01:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mel script, is it possible to identify UV shells and store them in an array?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9117629#M7045</link>
      <description>&lt;P&gt;Thanks for the help, Python is on the road map once I become more comfortable with coding concepts, I'm self teaching so mel seems like a good way to understand the fundamentals. What's the main advantage over mel in this particular situation, would Python be able to select the UVs shells easier?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 16:20:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-script-is-it-possible-to-identify-uv-shells-and-store-them/m-p/9117629#M7045</guid>
      <dc:creator>malcolm_341</dc:creator>
      <dc:date>2019-10-30T16:20:17Z</dc:date>
    </item>
  </channel>
</rss>

