Accessing the "direction" property of a light object seems to give me strange results:
I made a test cell with a cube and a single fixed (i.e. not camera-relative) directional light, and no ambient light.
Case 1: I set the lighting so that it shines along the Z-Axis in the negative direction (the "top" of the cube is illuminated)
if i access the direction property of that light, it gives me "0, -1, 0" instead of "0, 0, -1"
Case 2: I set the lighting so that it shines along the Y-Axis in the negative direction (one side of the cube is illuminated)
if i access the direction property of that light, it gives me "0, 0, 1" instead of "0, -1, 0"
Looks like the results use another coordinate system or some additional rotations. Since this is not documented in the API, i assume this is a bug or a misunderstanding on my side. Please enlighten me 🙂
edit: Win7 64bit, Inventor 2012