Title says it all. Thx
Edit
Note I'm not trying to calculate these values I want to assign them to the city engine environment settings. Idea is to set up a script as below. assign sun positionset position by bookmarksnapshotlayer off.layer onsnapshotetcset position bookmarketcSet new sun positionetcCheers
Hello Brian,
Sorry to inform you, that the sun can't be set via python.
The CityEngine team is aware of this missing feature.
I've added your request.
Thanks for your replies.
ok... I don't know what CE has for python methods and functions or properties, but certainly not within arcmap and arcpy. I hate to send you back to troll through the help documentation but... The only mention of 'azimuth' was under 'light' for setting light source... but not direct mention of python
Hi Dan, thanks for your reply. I'm not trying to calculate these values I want to assign them to the city engine environment settings. Idea is to set up a script as below.
assign sun position
set position by bookmark
snapshot
layer off.
layer on
etc
set position bookmark
Set new sun position
Cheers
@nothing builtin but there are tons of libraries
Pysolar: staring directly at the sun since 2007 — Pysolar 0.7 documentation
sunpos 1.1 : Python Package Index
astral 0.7.4 : Python Package Index
I could provide more, but I assume you have ruled out using externals
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.