GLOB_SUN_AZIMUTH shows default value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-12
11:40 AM
- last edited on
‎2021-09-14
01:23 PM
by
Noemi Balogh
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
if glob_ui_button_id = UI_SET then count = vardim1(list) list[count+1] = GLOB_SUN_AZIMUTH parameters list = list endifWhen ui_button (with id = UI_SET) is pressed only default value (240) is placed in "list" array but when use e.i
rotz GLOB_SUN_AZIMUTH block 1,1,1rotation is ok.
Why current value is not passed?
- Labels:
-
Library (GDL)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-13 04:45 PM
Does not work in Parameter script...only 2-3D and UI.
Piotr

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-15 07:23 PM
Are you trying to do something different?
Software Engineer, Library
Graphisoft SE, Budapest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-23 04:28 PM
Piotr wrote:Yes I know that. script was put into Master.
http://gdl.graphisoft.com/reference-guide/fly-through-information
Does not work in Parameter script...only 2-3D and UI.
Piotr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-23 04:32 PM
Peter wrote:Yes I want to make an object that stores several sun postions and draws 2D symbol with cpecific rays.
The camera tool can store different sun positions, and GLOB_SUN_AZIMUTH will be updated when rendering the animation path.
Are you trying to do something different?
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-23 04:52 PM
greg_lupo wrote:That actually doesn't matter.
Yes I know that. script was put into Master.
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.
This also means, your script won't work.
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.
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-02-23 05:00 PM
runxel wrote: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.
greg_lupo wrote:That actually doesn't matter.
Yes I know that. script was put into Master.
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.
This also means, your script won't work.
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.
I hoped I could avoid using hotspots.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-03-01 01:40 PM
Maybe you can skip using hotspots and set up the sun position on the UI.
ui_outfield GLOB_SUN_AZIMUTH, 0, 0, 100, 20
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.
Software Engineer, Library
Graphisoft SE, Budapest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-03-02 09:47 AM