<?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 python script that adds Arnold node - hypershade not updating in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8426585#M8653</link>
    <description>&lt;P&gt;When executing this simple script that adds an Arnold standard surface node:&lt;/P&gt;
&lt;P&gt;________&lt;/P&gt;
&lt;P&gt;for item in selection:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;cmds.createNode( 'aiStandardSurface', n=item )&lt;/P&gt;
&lt;P&gt;_______&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hypershade does not update the "Materials" tab to indicate the material is there. It shows up in the in the outliner with (DAG objects only = FALSE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I add the shader to Materials tab???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 08:33:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-27T08:33:19Z</dc:date>
    <item>
      <title>python script that adds Arnold node - hypershade not updating</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8426585#M8653</link>
      <description>&lt;P&gt;When executing this simple script that adds an Arnold standard surface node:&lt;/P&gt;
&lt;P&gt;________&lt;/P&gt;
&lt;P&gt;for item in selection:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;cmds.createNode( 'aiStandardSurface', n=item )&lt;/P&gt;
&lt;P&gt;_______&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hypershade does not update the "Materials" tab to indicate the material is there. It shows up in the in the outliner with (DAG objects only = FALSE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I add the shader to Materials tab???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 08:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8426585#M8653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T08:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: python script that adds Arnold node - hypershade not updating</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8433588#M8654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you using this script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just made a new scene with a basic object and tried running the script but only get syntax errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:29:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8433588#M8654</guid>
      <dc:creator>sean.heasley</dc:creator>
      <dc:date>2018-11-29T15:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: python script that adds Arnold node - hypershade not updating</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8434809#M8655</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just creating this one node is not enough.&lt;/P&gt;
&lt;P&gt;If you use the UI to create a material there is a lot more going on like creating additional nodes and make connections to other nodes.&lt;/P&gt;
&lt;P&gt;These nodes and connections to these nodes are needed:&lt;/P&gt;
&lt;P&gt;- ShaderGroup&lt;/P&gt;
&lt;P&gt;- materialInfo&lt;/P&gt;
&lt;P&gt;- renderPartition&lt;/P&gt;
&lt;P&gt;- lightLinker&lt;/P&gt;
&lt;P&gt;- defaultShaderList&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to work with single nodes, use the Node Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;If you only need the visibility in Hypershade use command shadingNode, this creates a connection to defaultShaderList:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/cloudhelp/2015/CHS/Maya-Tech-Docs/CommandsPython/shadingNode.html" target="_blank"&gt;https://help.autodesk.com/cloudhelp/2015/CHS/Maya-Tech-Docs/CommandsPython/shadingNode.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 23:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8434809#M8655</guid>
      <dc:creator>mspeer</dc:creator>
      <dc:date>2018-11-29T23:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: python script that adds Arnold node - hypershade not updating</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8436955#M8656</link>
      <description>&lt;P&gt;Awesome! This saves a line&amp;nbsp;of python. Instead of creating the node and doing a connectAttr to the appropriate list, I can just create and connect in one line. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 18:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/python-script-that-adds-arnold-node-hypershade-not-updating/m-p/8436955#M8656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T18:03:23Z</dc:date>
    </item>
  </channel>
</rss>

