Firstly a special thanks to David Ikeda for the insight his material baker script has given me.
I am writing a script that will allow me to rotate my tool around the y axis by a specific angle using the gyro and then have the lights rotate the same amount (simulating a rotation of camera rather than a tool rotation). This works perfectly for all lights apart from the sun light. As a work around i can Use the light placement sliders and then switch to the point light and back to the sun light. This updates the sun lights position and works fine for small angles however it reaches a maximum angle of 63.4 degrees from the centre.
(from what i can tell the direction of the sun light is that of the line drawn from the x and y placement co-ordinates on a -.5 z plane through the origin)
The light placement window however seems to be independant, extremely accurate and can position the sun light anywhere around the model. Is there any to control the light placement this way numerically via a script? or any other way to make the sun light rotate around and even behind the tool?
Thanks in advance