Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5871

Extracting the sun azimuth angle

$
0
0

@juancarreras wrote:

I need some python code for extracting the azimuth angle of a scene sun light without having to open the sun panel, ideally not even selecting the light but rather using a specific existing object name such as "MySun".
I'm trying to write a script to match the rotation of a domelight texture to match the current sun azimuth rotation.
I have some bits and pieces already but I can't figure out how to get the sun angle from its vector data.
My python scripting skills are pretty poor .... :slightly_smiling:
Can anyone help ?
Thanks !

Posts: 9

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5871

Trending Articles