<?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: how to set paint type or chrome type via python script in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9266429#M4812</link>
    <description>&lt;P&gt;Thanks a lot,&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I tried more to set chome "use roughness" to true with script below:&lt;/P&gt;&lt;PRE&gt;# chrome matte, set useRoughness ?
mat = findMaterial("chrome-matte")
mat.fields().setBool("useRoughness",True)&lt;/PRE&gt;&lt;P&gt;ends with error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;error vrFieldAccess::setField: Couldn't find field 'useRoughness'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;need help for this issue.&lt;/P&gt;&lt;P&gt;and if there is some documentation of python api on the things like these, that would be much better...&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 09:56:04 GMT</pubDate>
    <dc:creator>nexzhou</dc:creator>
    <dc:date>2020-01-22T09:56:04Z</dc:date>
    <item>
      <title>how to set paint type or chrome type via python script</title>
      <link>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9261715#M4810</link>
      <description>&lt;P&gt;i'm working on python script on vred, try to&amp;nbsp;set paint type on&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;UMetallicPaintMaterial,&amp;nbsp;&lt;/SPAN&gt;or chrome type on UChromeMaterial, via python script,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;nd = findNode("chrome")
fds = nd.getMaterial().fields()
fds.setString("chromeType","highlyReflective")

nd = findNode("paint")
fds = nd.getMaterial().fields()
fds.setString("paintType","2-coat")&lt;/PRE&gt;&lt;P&gt;but script does not work with error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;vrFieldAccess::setField: Couldn't find field 'chromeType'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;vrFieldAccess::setField: Couldn't find field 'paintType'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;how to set paint type or chrome type via python script, is there any documentation of python api on setting chromeType or paintType , or shows chromeType or paintType parameters&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;need help for this question, thanks.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 13:47:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9261715#M4810</guid>
      <dc:creator>nexzhou</dc:creator>
      <dc:date>2020-01-20T13:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to set paint type or chrome type via python script</title>
      <link>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9266265#M4811</link>
      <description>&lt;P&gt;There is no real documentation for all the fields of each material. However, you can use the node editor to figure out which field to set and additionally the type of the field (tooltip when the mouse is over the value in the node editor). In your case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# Chrome type
mat = findMaterial("Chrome")
mat.fields().setInt32("metalType",4)

# Paint type&lt;BR /&gt;mat = findMaterial("Paint")&lt;BR /&gt;mat.fields().setInt32("paintType",1)&lt;/PRE&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Marcus&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 08:23:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9266265#M4811</guid>
      <dc:creator>marcus_fritzen</dc:creator>
      <dc:date>2020-01-22T08:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to set paint type or chrome type via python script</title>
      <link>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9266429#M4812</link>
      <description>&lt;P&gt;Thanks a lot,&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I tried more to set chome "use roughness" to true with script below:&lt;/P&gt;&lt;PRE&gt;# chrome matte, set useRoughness ?
mat = findMaterial("chrome-matte")
mat.fields().setBool("useRoughness",True)&lt;/PRE&gt;&lt;P&gt;ends with error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;error vrFieldAccess::setField: Couldn't find field 'useRoughness'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;need help for this issue.&lt;/P&gt;&lt;P&gt;and if there is some documentation of python api on the things like these, that would be much better...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 09:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9266429#M4812</guid>
      <dc:creator>nexzhou</dc:creator>
      <dc:date>2020-01-22T09:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to set paint type or chrome type via python script</title>
      <link>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9272271#M4813</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;as Marcus has written, instead of documentation we have the &lt;STRONG&gt;Node Editor&lt;/STRONG&gt; (a module in the GUI, Scene &amp;gt; Node Editor) where you can see all fields of a selected object. For materials, drag &amp;amp; drop them from the Material Editor into the module.&lt;/P&gt;
&lt;P&gt;In this case, it is "isRough".&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Sinje&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="NodeEditor_Chrome.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/720899i148766D159ECC597/image-size/large?v=v2&amp;amp;px=999" role="button" title="NodeEditor_Chrome.png" alt="NodeEditor_Chrome.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 11:57:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9272271#M4813</guid>
      <dc:creator>sinje_thiedemann</dc:creator>
      <dc:date>2020-01-24T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to set paint type or chrome type via python script</title>
      <link>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9300096#M4814</link>
      <description>thanks a lot. that is very helpful</description>
      <pubDate>Thu, 06 Feb 2020 06:36:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/how-to-set-paint-type-or-chrome-type-via-python-script/m-p/9300096#M4814</guid>
      <dc:creator>nexzhou</dc:creator>
      <dc:date>2020-02-06T06:36:57Z</dc:date>
    </item>
  </channel>
</rss>

