In my export plug-in I’d like to export a light where the sun is in SketchUp, but I’m not seeing any API for finding out where it is.
Is it there?
In my export plug-in I’d like to export a light where the sun is in SketchUp, but I’m not seeing any API for finding out where it is.
Is it there?
Edit - oops you’re asking about the SDK - nevermind…
Check
Model#shadow_info
data.
http://www.sketchup.com/intl/en/developer/docs/ourdoc/shadowinfo
Actually, that was very helpful - I was looking for “light” and “sun” but not “shadow” - there is a shadow_info.h header file, and I will now look into what it contains…
Hehe - so there is - there should be a “SunDirection” vector in the result.