<?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: A simple Material assignment break maya shading/viewport in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/a-simple-material-assignment-break-maya-shading-viewport/m-p/13225599#M104</link>
    <description>&lt;P&gt;I just tried it in 2023.3 with a blinn and phong and it worked fine.&amp;nbsp; Might it be the VRayMtl?&amp;nbsp; Maybe perform the process manually and check the history printout.&amp;nbsp; Then copy and paste the printout and test it to see if there are any differences.&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2024 17:06:17 GMT</pubDate>
    <dc:creator>mcw0</dc:creator>
    <dc:date>2024-12-22T17:06:17Z</dc:date>
    <item>
      <title>A simple Material assignment break maya shading/viewport</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/a-simple-material-assignment-break-maya-shading-viewport/m-p/13225210#M103</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;Currently in maya 2023.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The artist selects geometry in the viewport and applies materialA via GUI/Maya interface.&lt;BR /&gt;Then we run this code &amp;gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;sets -e -forceElement VRayLightMtl1SG |pPlane1;
sets -e -forceElement VRayLightMtl1SG |pCylinder1;
sets -e -forceElement VRayLightMtl1SG |cascvasv2;


sets -e -forceElement VRayMtl3SG |pPlane1.f[0:50];
sets -e -forceElement VRayMtl3SG |pCylinder1.f[0:59];
sets -e -forceElement VRayMtl3SG |cascvasv2.f[0:99];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its just 2 planes and a cylinder.&lt;/P&gt;&lt;P&gt;When I apply this code I end up with this &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BobBon2000_0-1734861870055.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1448415iDA899405D64C268D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BobBon2000_0-1734861870055.png" alt="BobBon2000_0-1734861870055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can any1 suggest what to do ?&lt;/P&gt;&lt;P&gt;I want to apply material per face/range if there were any per face materials. But every time I try it breaks maya.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 10:06:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/a-simple-material-assignment-break-maya-shading-viewport/m-p/13225210#M103</guid>
      <dc:creator>Bob.Bon2000</dc:creator>
      <dc:date>2024-12-22T10:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: A simple Material assignment break maya shading/viewport</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/a-simple-material-assignment-break-maya-shading-viewport/m-p/13225599#M104</link>
      <description>&lt;P&gt;I just tried it in 2023.3 with a blinn and phong and it worked fine.&amp;nbsp; Might it be the VRayMtl?&amp;nbsp; Maybe perform the process manually and check the history printout.&amp;nbsp; Then copy and paste the printout and test it to see if there are any differences.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 17:06:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/a-simple-material-assignment-break-maya-shading-viewport/m-p/13225599#M104</guid>
      <dc:creator>mcw0</dc:creator>
      <dc:date>2024-12-22T17:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: A simple Material assignment break maya shading/viewport</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/a-simple-material-assignment-break-maya-shading-viewport/m-p/13225802#M105</link>
      <description>Hey&lt;BR /&gt;Yeah that what I tried. When evern I apply material by hand, and perform F9(I think for poly) and apply partial material to polygons only ( so 2+ materials on 1 object) when I run the commands I posted above they all break.&lt;BR /&gt;If I render I get correct render, and if I save/load scene I get correct viewpower. So it looks to be a bug in 2023.3... I'll test 2024/2025...</description>
      <pubDate>Sun, 22 Dec 2024 21:48:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/a-simple-material-assignment-break-maya-shading-viewport/m-p/13225802#M105</guid>
      <dc:creator>Bob.Bon2000</dc:creator>
      <dc:date>2024-12-22T21:48:18Z</dc:date>
    </item>
  </channel>
</rss>

