Get light/sun info in C++ plug-in?

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.

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…

  • wave
1 Like

Hehe - so there is - there should be a “SunDirection” vector in the result. :beers:

1 Like