Create sun settings and apply to view



I have created some views using AxonometricView.ByEyePointAndTarget. These are named based on the time of day, e.g. 21 Jun 1200. What I would like to do is create sun settings and then assign them to selected views. Is this possible? I can’t find any node that does this.

Had a quick look. Just like everything else in the API, it’s not a straight-forward process. Every view has its own unique sun settings instance, so you’ll have to fetch that first and then change its parameters. The most annoying thing is that Dynamo’s built-in DateTime nodes specify the DT’s kind as Unspecified:


Alternatively you could save the sun settings to a template and apply the template to multiple views.