<?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: edgeToFaceSelect is bugged? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11729397#M3138</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edgeToFaceSelect.jpg" style="width: 800px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1171580i4D8B1060A831FACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="edgeToFaceSelect.jpg" alt="edgeToFaceSelect.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip with single vertex conversion. BTW, how did you figure out max does selection expanding first? I didn't see it in help docs and it doesn't show up in macrorecorder. Is there an article I can read on what is going on under the hood of &lt;SPAN&gt;"Edit UVWs"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately it doesn't work for edgeToFaceSelect().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Issue can occur even with multiple edges selected, single edge is just clearer way to demonstrate it. I can probably catch these cases by selecting random face first, do&amp;nbsp;edgeToFaceSelect() and then check if&amp;nbsp;getSelectedFaces() returns empty array, but real problem is that expand selects too much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's the case that shows difference between expand and ctrl+click approaches.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Feb 2023 08:00:38 GMT</pubDate>
    <dc:creator>dmitriy.shpilevoy</dc:creator>
    <dc:date>2023-02-04T08:00:38Z</dc:date>
    <item>
      <title>edgeToFaceSelect is bugged?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11695501#M3133</link>
      <description>&lt;P&gt;Trying to convert edge to face selection in Unwrap Editor using maxscript. It only works if 2 or more edges selected and at least 2 edges are not touching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 create default plane and convert it to Editable Poly&lt;/P&gt;&lt;P&gt;2 apply Unwrap UVW modifier and open its editor&lt;/P&gt;&lt;P&gt;3 switch to face mode and select all faces(you need it to see face selection changes)&lt;/P&gt;&lt;P&gt;4 switch to edge mode and select any single edge&lt;/P&gt;&lt;P&gt;5 in Listener run&amp;nbsp;&lt;/P&gt;&lt;P&gt;$.modifiers[1].edgeToFaceSelect()&lt;/P&gt;&lt;P&gt;6 switch to faces&lt;/P&gt;&lt;P&gt;You can see that No faces are selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To see how it is supposed to work:&lt;/P&gt;&lt;P&gt;1b create default plane and convert it to Editable Poly&lt;/P&gt;&lt;P&gt;2b apply Unwrap UVW modifier and open its editor&lt;/P&gt;&lt;P&gt;3b switch to face mode and select all faces(you need it to see face selection changes)&lt;/P&gt;&lt;P&gt;4b&amp;nbsp;switch to edge mode and select 2 edges that are not touching and share same face(top and bottom or left and right edges of the same face)&lt;/P&gt;&lt;P&gt;5b in Listener run&amp;nbsp;&lt;/P&gt;&lt;P&gt;$.modifiers[1].edgeToFaceSelect()&lt;/P&gt;&lt;P&gt;6b switch to faces&lt;/P&gt;&lt;P&gt;Face that has both of these edges, is selected as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select a single edge and convert selection to faces via UI, by clicking on faces button while holding Ctrl - it will work as expected, thus I assume the problem is with&amp;nbsp;edgeToFaceSelect()&lt;/P&gt;&lt;P&gt;but that method doesn't produce any events in macrorecorder so I can't use it.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 20:38:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11695501#M3133</guid>
      <dc:creator>dmitriy.shpilevoy</dc:creator>
      <dc:date>2023-01-21T20:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: edgeToFaceSelect is bugged?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11726451#M3134</link>
      <description>&lt;P&gt;There is some fundamental issue with Unwrap selection conversion.&lt;/P&gt;&lt;P&gt;These have same broken behavior when using maxscript:&lt;/P&gt;&lt;P&gt;vertToEdgeSelect()&lt;BR /&gt;vertToFaceSelect()&lt;BR /&gt;but work as expected via user interface (Ctrl+click on different selection mode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can do it through user interface then code that works is already there. From user point of view, fix should be as easy as switching maxscript from whatever it calls at the moment to calling code that works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Posted here and tried to report directly from within 3dsmax, so far not even an automated response.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 05:36:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11726451#M3134</guid>
      <dc:creator>dmitriy.shpilevoy</dc:creator>
      <dc:date>2023-02-03T05:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: edgeToFaceSelect is bugged?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11726514#M3135</link>
      <description>&lt;P&gt;what MAX version do you use?&lt;/P&gt;&lt;P&gt;2016, 2020, 2022, 2023 work as expected for me. I don't see any problems. All sub-conversion methods work with and without modifier panel opened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 06:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11726514#M3135</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-03T06:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: edgeToFaceSelect is bugged?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11727178#M3136</link>
      <description>&lt;P&gt;Tried in&lt;/P&gt;&lt;P&gt;2021 #(23000, 57, 0, 23, 3, 2, 3508, 2021, ".3.2 Security Fix")&lt;/P&gt;&lt;P&gt;2022&amp;nbsp;#(24000, 60, 0, 24, 2, 0, 2334, 2022, ".2 Update ")&lt;/P&gt;&lt;P&gt;2023&amp;nbsp;#(25000, 62, 0, 25, 3, 0, 3640, 2023, ".3 Update")&lt;/P&gt;&lt;P&gt;2023 tested on three different machines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;All sub-conversion methods work with and without modifier panel opened.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can select a single vertex in Unwrap Editor and convert it to edges or faces, or select a single edge and convert it to faces selection using maxscript command?&lt;/P&gt;&lt;P&gt;Can you describe your exact steps to convert single edge to faces selection in Unwrap Editor with maxscript please, maybe I'm missing crucial step somewhere?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 12:17:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11727178#M3136</guid>
      <dc:creator>dmitriy.shpilevoy</dc:creator>
      <dc:date>2023-02-03T12:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: edgeToFaceSelect is bugged?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11728815#M3137</link>
      <description>&lt;P&gt;I didn't read your original post carefully. You are talking specifically about the case of a single sub-selection and conversion.&lt;/P&gt;&lt;P&gt;As you can see, the manual built-in methods from the top menu of the "Edit UVWs" dialog do not work for a single case either. The modifier in this case for the CTRL+ option first expands the sub-selection and then converts the result. You can do the same by checking for the single selection case and applying the expandSelection method before the conversion.&lt;BR /&gt;A single edge-to-face conversion is a little tricky. You can first do an edge-to-vert convert, expand, and finally do a vert-to-face.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 23:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11728815#M3137</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-03T23:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: edgeToFaceSelect is bugged?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11729397#M3138</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edgeToFaceSelect.jpg" style="width: 800px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1171580i4D8B1060A831FACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="edgeToFaceSelect.jpg" alt="edgeToFaceSelect.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip with single vertex conversion. BTW, how did you figure out max does selection expanding first? I didn't see it in help docs and it doesn't show up in macrorecorder. Is there an article I can read on what is going on under the hood of &lt;SPAN&gt;"Edit UVWs"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately it doesn't work for edgeToFaceSelect().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Issue can occur even with multiple edges selected, single edge is just clearer way to demonstrate it. I can probably catch these cases by selecting random face first, do&amp;nbsp;edgeToFaceSelect() and then check if&amp;nbsp;getSelectedFaces() returns empty array, but real problem is that expand selects too much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's the case that shows difference between expand and ctrl+click approaches.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 08:00:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/edgetofaceselect-is-bugged/m-p/11729397#M3138</guid>
      <dc:creator>dmitriy.shpilevoy</dc:creator>
      <dc:date>2023-02-04T08:00:38Z</dc:date>
    </item>
  </channel>
</rss>

