<?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: Select Objects with Material but only from selection or replace material in selection of objects? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/select-objects-with-material-but-only-from-selection-or-replace/m-p/10986025#M2839</link>
    <description>&lt;P&gt;The logic for this would be:&lt;BR /&gt;&lt;BR /&gt;1.&amp;nbsp; Get your selection&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Get the shader connections of your selection&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Loop through shaders to find the one you want to replace&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Reassign new shader when old shader is found.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Mar 2022 16:59:01 GMT</pubDate>
    <dc:creator>mcw0</dc:creator>
    <dc:date>2022-03-05T16:59:01Z</dc:date>
    <item>
      <title>Select Objects with Material but only from selection or replace material in selection of objects?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/select-objects-with-material-but-only-from-selection-or-replace/m-p/10985378#M2838</link>
      <description>&lt;P&gt;SOS!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know about the Maya Hypershade ability to "Select Objects with Material".... and I am looking for exactly that feature, BUT only on the selected objects in my scene... at the moment I have over 100k models in my Maya file that all need a material replaced on the object, and if I try to run "Select Objects with material" it breaks my Maya and freezes BAAAD...&lt;BR /&gt;&lt;BR /&gt;I know a little python, but it would greatly help if someone could point me in the right direction for this. Even if its kinda a hacky way. I've got a major deadline and this would SAVE THE DAY.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devinm3d_0-1646451340100.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1032745i04CA33D3B7977D58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="devinm3d_0-1646451340100.png" alt="devinm3d_0-1646451340100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devinm3d_1-1646451355868.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1032746iA12A158EB9BDB369/image-size/medium?v=v2&amp;amp;px=400" role="button" title="devinm3d_1-1646451355868.png" alt="devinm3d_1-1646451355868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 03:40:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/select-objects-with-material-but-only-from-selection-or-replace/m-p/10985378#M2838</guid>
      <dc:creator>devinm3d</dc:creator>
      <dc:date>2022-03-05T03:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select Objects with Material but only from selection or replace material in selection of objects?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/select-objects-with-material-but-only-from-selection-or-replace/m-p/10986025#M2839</link>
      <description>&lt;P&gt;The logic for this would be:&lt;BR /&gt;&lt;BR /&gt;1.&amp;nbsp; Get your selection&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Get the shader connections of your selection&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Loop through shaders to find the one you want to replace&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Reassign new shader when old shader is found.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 16:59:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/select-objects-with-material-but-only-from-selection-or-replace/m-p/10986025#M2839</guid>
      <dc:creator>mcw0</dc:creator>
      <dc:date>2022-03-05T16:59:01Z</dc:date>
    </item>
  </channel>
</rss>

