<?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 Get vertex colour via python in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10169769#M3263</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility to read/set the vertex colour of a geometry node via python?&lt;/P&gt;&lt;P&gt;You can get indices, positions, normals etc. but I couldnt find anything in the docs for the vertex colour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 11:18:43 GMT</pubDate>
    <dc:creator>Totila_</dc:creator>
    <dc:date>2021-03-19T11:18:43Z</dc:date>
    <item>
      <title>Get vertex colour via python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10169769#M3263</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility to read/set the vertex colour of a geometry node via python?&lt;/P&gt;&lt;P&gt;You can get indices, positions, normals etc. but I couldnt find anything in the docs for the vertex colour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 11:18:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10169769#M3263</guid>
      <dc:creator>Totila_</dc:creator>
      <dc:date>2021-03-19T11:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get vertex colour via python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10201499#M3264</link>
      <description>&lt;P&gt;I'm figuring they hide somewhere in here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vertices.PNG" style="width: 608px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/900648i8DF904586C6BD470/image-size/large?v=v2&amp;amp;px=999" role="button" title="vertices.PNG" alt="vertices.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm beginning to play with this here, by making a box and then getting the positions and then the texcoords&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#get vertices colours for later nefarious work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;boxy_colour = vrFieldAccess(boxy.fields().getFieldContainer("texCoords7"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which will then require a list of vertex colours with rgb and gamma as vec4f or something along those lines. I'm just getting started so it's slow going...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check Simon Nagel's 'load point cloud script' (that I'm using for a lunch hour project that is taking more than my lunch hour &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/simonnagel/VRED-loadPointCloudPTS" target="_blank"&gt;https://github.com/simonnagel/VRED-loadPointCloudPTS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;He accesses the vertices and maps the rgb from a point cloud, so i guess this might help put you on track.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 10:44:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10201499#M3264</guid>
      <dc:creator>bryan_martin_morris</dc:creator>
      <dc:date>2021-03-31T10:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get vertex colour via python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10215812#M3265</link>
      <description>&lt;P&gt;Thanks for the tip. Looks good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it seems this only works for poly geometry, not for nurbs.. For those there is not texCoords7 in the node editor.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 15:28:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10215812#M3265</guid>
      <dc:creator>Totila_</dc:creator>
      <dc:date>2021-04-06T15:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get vertex colour via python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10217784#M3266</link>
      <description>&lt;P&gt;We don´t support vertex colors in our materials at the moment. The texCoord7 uses the baked indirect illumination and ambient occlusion and is therefore not used like a normal vertex color.&lt;/P&gt;
&lt;P&gt;As for NURBS: A Shell does not have any data at all, everything is stored in the child surfaces.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 07:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10217784#M3266</guid>
      <dc:creator>michael_nikelsky</dc:creator>
      <dc:date>2021-04-07T07:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get vertex colour via python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10219057#M3267</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2176632"&gt;@michael_nikelsky&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was helpful for me to do what I want by reading the vertex colour from the shells' children.&lt;/P&gt;&lt;P&gt;Thanks also to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4405096"&gt;@bryan_martin_morris&lt;/a&gt;&amp;nbsp;for the starter.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 15:14:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/get-vertex-colour-via-python/m-p/10219057#M3267</guid>
      <dc:creator>Totila_</dc:creator>
      <dc:date>2021-04-07T15:14:50Z</dc:date>
    </item>
  </channel>
</rss>

