<?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 Code to make AO with no UI in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/code-to-make-ao-with-no-ui/m-p/11014542#M2417</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I need to save screen real estate and the baking takes up to much room and I would like to assign the AO with a distance of x to a quick python script.&lt;/P&gt;&lt;P&gt;Can someone help me with a sample? I'm not a Python programmer but I think I can understand the code enough to change it for my needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help please?&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 18 Mar 2022 17:04:10 GMT</pubDate>
    <dc:creator>Madeira3d</dc:creator>
    <dc:date>2022-03-18T17:04:10Z</dc:date>
    <item>
      <title>Code to make AO with no UI</title>
      <link>https://forums.autodesk.com/t5/vred-forum/code-to-make-ao-with-no-ui/m-p/11014542#M2417</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I need to save screen real estate and the baking takes up to much room and I would like to assign the AO with a distance of x to a quick python script.&lt;/P&gt;&lt;P&gt;Can someone help me with a sample? I'm not a Python programmer but I think I can understand the code enough to change it for my needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help please?&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Mar 2022 17:04:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/code-to-make-ao-with-no-ui/m-p/11014542#M2417</guid>
      <dc:creator>Madeira3d</dc:creator>
      <dc:date>2022-03-18T17:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Code to make AO with no UI</title>
      <link>https://forums.autodesk.com/t5/vred-forum/code-to-make-ao-with-no-ui/m-p/11018388#M2418</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A co-worker helped me with the code, in case you are interested here it goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone from AD add a enhancement request to add the bake Weighting Cosine available also via the API?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;computeAmbientOcclusion(quality=4, minDistance=1, maxDistance=3000, indirectIllumination=True, colorBleeding=True, gatherQuality=4, numIndirections=2, subdivide=False, minEdgeLength=1, overrideMaterialColor=False, materialColorR=0.7, materialColorG=0.7, materialColorB=0.7, subdivisionQuality=1, intensityThreshold=0.05)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 10:27:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/code-to-make-ao-with-no-ui/m-p/11018388#M2418</guid>
      <dc:creator>Madeira3d</dc:creator>
      <dc:date>2022-03-21T10:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Code to make AO with no UI</title>
      <link>https://forums.autodesk.com/t5/vred-forum/code-to-make-ao-with-no-ui/m-p/11129941#M2419</link>
      <description>&lt;P&gt;Hi, I've added your request to make the weighting option for vertex baking available in Python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For texture baking, (vrBakeService.bakeToTexture), the option can be set:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;illumSettings = vrdIlluminationBakeSettings()
illumSettings.setAmbientOcclusionWeight(vrBakeTypes.AmbientOcclusionWeight.Cosine)
#...etc
texSettings = vrdTextureBakeSettings()
texSettings.setSamples(128)
texSettings.setUseDenoising(True)
#...etc
vrBakeService.bakeToTexture(geoNodes, illumSettings, texSettings)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 16:24:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/code-to-make-ao-with-no-ui/m-p/11129941#M2419</guid>
      <dc:creator>sinje_thiedemann</dc:creator>
      <dc:date>2022-04-26T16:24:40Z</dc:date>
    </item>
  </channel>
</rss>

