<?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: Python | Light Values: Intensity (Luminous) and Temperature (Kelvin) in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/python-light-values-intensity-luminous-and-temperature-kelvin/m-p/10821823#M2658</link>
    <description>&lt;P&gt;oh, thanks for the super fast reply!&lt;/P&gt;&lt;P&gt;Easy solution, I did not see this in the docs, sorry for this.&lt;/P&gt;&lt;P&gt;Have a great week Michael.&lt;/P&gt;&lt;P&gt;Best support as always!&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Dec 2021 10:31:58 GMT</pubDate>
    <dc:creator>5inch</dc:creator>
    <dc:date>2021-12-14T10:31:58Z</dc:date>
    <item>
      <title>Python | Light Values: Intensity (Luminous) and Temperature (Kelvin)</title>
      <link>https://forums.autodesk.com/t5/vred-forum/python-light-values-intensity-luminous-and-temperature-kelvin/m-p/10821729#M2656</link>
      <description>&lt;P&gt;Hi Vred Pros,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;brief and simple question I guess?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Vred Pro 2022.1,&lt;/P&gt;&lt;P&gt;I need to edit Light Values: Intensity (Luminous) and Temperature (Kelvin).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LightEditor.png" style="width: 827px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1001238i5B10BF932946D84D/image-size/large?v=v2&amp;amp;px=999" role="button" title="LightEditor.png" alt="LightEditor.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;light = getSelectedNode()&lt;/P&gt;&lt;P&gt;temperatureValue = vrFieldAccess(light.fields().setReal32("intensity", 123.456))&lt;/P&gt;&lt;P&gt;temperatureValue = vrFieldAccess(light.fields().setUInt16("temperature", 5000))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this seems not to work.&lt;/P&gt;&lt;P&gt;Can you please drop a tip for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 09:41:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/python-light-values-intensity-luminous-and-temperature-kelvin/m-p/10821729#M2656</guid>
      <dc:creator>5inch</dc:creator>
      <dc:date>2021-12-14T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python | Light Values: Intensity (Luminous) and Temperature (Kelvin)</title>
      <link>https://forums.autodesk.com/t5/vred-forum/python-light-values-intensity-luminous-and-temperature-kelvin/m-p/10821804#M2657</link>
      <description>&lt;P&gt;You can´t really access this with the old python interface since that is very low level and just gives you the internally stored values. You should use the new python interface for this, the vrdBaseLightNode should provide all you need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A target="_blank"&gt;file:///C:/Program%20Files/Autodesk/VREDPro-14.1/doc/v2/class_vrdBaseLightNode.html#vredvrdbaselightnode-getintensity&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So simple something like this should do what you want:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;pointLight = vrNodeService.findNode("point light")
pointLight.setLightUnit(vrLightTypes.Unit.Lumen)
pointLight.setIntensity(500.0)
pointLight.setUseLightTemperature(true)
pointLight.setTemperature(4000)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 10:17:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/python-light-values-intensity-luminous-and-temperature-kelvin/m-p/10821804#M2657</guid>
      <dc:creator>michael_nikelsky</dc:creator>
      <dc:date>2021-12-14T10:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Python | Light Values: Intensity (Luminous) and Temperature (Kelvin)</title>
      <link>https://forums.autodesk.com/t5/vred-forum/python-light-values-intensity-luminous-and-temperature-kelvin/m-p/10821823#M2658</link>
      <description>&lt;P&gt;oh, thanks for the super fast reply!&lt;/P&gt;&lt;P&gt;Easy solution, I did not see this in the docs, sorry for this.&lt;/P&gt;&lt;P&gt;Have a great week Michael.&lt;/P&gt;&lt;P&gt;Best support as always!&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 10:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/python-light-values-intensity-luminous-and-temperature-kelvin/m-p/10821823#M2658</guid>
      <dc:creator>5inch</dc:creator>
      <dc:date>2021-12-14T10:31:58Z</dc:date>
    </item>
  </channel>
</rss>

