Sort of. Since directional light sources in Blender point usally in -Z direction (in their local space) you can use that, normalized, as a direction vector. The "Edit Drivers" popup has the option to get location data either in world-space or local-space. So, by rotating the Sun object, like you would normally do to…
OK I get it, so the local space position of this Light is essentially the "tip" we use to drag light direction, right? Hence we can use it with the default light direction to get actual light direction. But I find your math flawed here, usually we need Quaternion to properly rotation around an axis, so I can see your…
@bitinn good to know you're familiar with this, I hope I didn't offend with overexplaining (I only do it because other people might come here from a web search without knowing all this). If you use the world-space position, the light direction will go from the object position toward the world origin (0,0,0).I don't quite…