<?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 GLOB_SUN_AZIMUTH shows default value in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244279#M4091</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;I would like to read GLOB_SUN_AZIMUTH value and put it to array parameter then change sun position and again add new value to an array. Master script looks like this&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;if glob_ui_button_id = UI_SET then 
count = vardim1(list)

 list[count+1] = GLOB_SUN_AZIMUTH 
parameters list = list 
endif 
&lt;/PRE&gt;
When ui_button (with id = UI_SET) is pressed only default value (240) is placed in "list" array but when use e.i
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;rotz GLOB_SUN_AZIMUTH
block 1,1,1
&lt;/PRE&gt;
rotation is ok.&lt;BR /&gt;Why current value is not passed?&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 11:23:50 GMT</pubDate>
    <dc:creator>greg_lupo</dc:creator>
    <dc:date>2021-09-14T11:23:50Z</dc:date>
    <item>
      <title>GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244279#M4091</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;I would like to read GLOB_SUN_AZIMUTH value and put it to array parameter then change sun position and again add new value to an array. Master script looks like this&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;if glob_ui_button_id = UI_SET then 
count = vardim1(list)

 list[count+1] = GLOB_SUN_AZIMUTH 
parameters list = list 
endif 
&lt;/PRE&gt;
When ui_button (with id = UI_SET) is pressed only default value (240) is placed in "list" array but when use e.i
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;rotz GLOB_SUN_AZIMUTH
block 1,1,1
&lt;/PRE&gt;
rotation is ok.&lt;BR /&gt;Why current value is not passed?&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:23:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244279#M4091</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2021-09-14T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244280#M4092</link>
      <description>&lt;A href="http://gdl.graphisoft.com/reference-guide/fly-through-information" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/reference-gui ... nformation"&gt;http://gdl.graphisoft.com/reference-guide/fly-through-information&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Does not work in Parameter script...only 2-3D and UI.&lt;BR /&gt;
&lt;BR /&gt;
Piotr</description>
      <pubDate>Sat, 13 Feb 2021 15:45:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244280#M4092</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-02-13T15:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244281#M4093</link>
      <description>The camera tool can store different sun positions, and GLOB_SUN_AZIMUTH will be updated when rendering the animation path.&lt;BR /&gt;
Are you trying to do something different?</description>
      <pubDate>Mon, 15 Feb 2021 18:23:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244281#M4093</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-02-15T18:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244282#M4094</link>
      <description>&lt;BLOCKQUOTE&gt;Piotr wrote:&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/reference-guide/fly-through-information" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/reference-gui ... nformation"&gt;http://gdl.graphisoft.com/reference-guide/fly-through-information&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Does not work in Parameter script...only 2-3D and UI.&lt;BR /&gt;
&lt;BR /&gt;
Piotr
&lt;/BLOCKQUOTE&gt;

Yes I know that. script was put into Master.</description>
      <pubDate>Tue, 23 Feb 2021 15:28:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244282#M4094</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2021-02-23T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244283#M4095</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;
The camera tool can store different sun positions, and GLOB_SUN_AZIMUTH will be updated when rendering the animation path.&lt;BR /&gt;
Are you trying to do something different?
&lt;/BLOCKQUOTE&gt;

Yes I want to make an object that stores several sun postions and draws 2D symbol with cpecific rays.&lt;BR /&gt;
In 3D it supose to produce 3D rays. Then I want to use it in Grasshopper where rays will be converted to vectors which will be put in a middle of selected windows. Rays will have "infinite" length so I want to use them to find collisions with surrounding buildings.</description>
      <pubDate>Tue, 23 Feb 2021 15:32:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244283#M4095</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2021-02-23T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244284#M4096</link>
      <description>&lt;BLOCKQUOTE&gt;greg_lupo wrote:&lt;BR /&gt;
Yes I know that. script was put into Master.
&lt;/BLOCKQUOTE&gt;

That actually doesn't matter.&lt;BR /&gt;
The master script in GDL is kind of a "global" script in that way, that you can put any command there, it will mostly executed in the right context.&lt;BR /&gt;
This also means, your script won't work.&lt;BR /&gt;
What you want to achieve is not possible, the user will have to input the sun positions manually, if you want to have them all at once.</description>
      <pubDate>Tue, 23 Feb 2021 15:52:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244284#M4096</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-02-23T15:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244285#M4097</link>
      <description>&lt;BLOCKQUOTE&gt;runxel wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;greg_lupo wrote:&lt;BR /&gt;
Yes I know that. script was put into Master.
&lt;/BLOCKQUOTE&gt;

That actually doesn't matter.&lt;BR /&gt;
The master script in GDL is kind of a "global" script in that way, that you can put any command there, it will mostly executed in the right context.&lt;BR /&gt;
This also means, your script won't work.&lt;BR /&gt;
What you want to achieve is not possible, the user will have to input the sun positions manually, if you want to have them all at once.
&lt;/BLOCKQUOTE&gt;

I understand. hmm pity. Now it works manually. user rotate  hotspot2 in actual azimuth  position of sun and drag hotspot in 3d to get  actual Altitude. Then in UI can add this two values to array.&lt;BR /&gt;
I hoped I could avoid using hotspots.</description>
      <pubDate>Tue, 23 Feb 2021 16:00:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244285#M4097</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2021-02-23T16:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244286#M4098</link>
      <description>Hi greg_lupo,&lt;BR /&gt;
&lt;BR /&gt;
Maybe you can skip using hotspots and set up the sun position on the UI.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;ui_outfield GLOB_SUN_AZIMUTH, 0, 0, 100, 20&lt;/PRE&gt;

&lt;BR /&gt;
will show the current value on the UI, give an infield next to it where the user can repeat it as input. I know its lame but the closest workaround we have.</description>
      <pubDate>Mon, 01 Mar 2021 12:40:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244286#M4098</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-03-01T12:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_SUN_AZIMUTH shows default value</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244287#M4099</link>
      <description>Yes, looks simpler than moving hotspots. Will try that.</description>
      <pubDate>Tue, 02 Mar 2021 08:47:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-SUN-AZIMUTH-shows-default-value/m-p/244287#M4099</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2021-03-02T08:47:44Z</dc:date>
    </item>
  </channel>
</rss>

