THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/05/2007 at 04:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10
Platform: Windows ;
Language(s) : C++ ;
---------
Hello there!
Is there any way to get a RayLight that corresponds to a BaseObject of type Olight or is that only available to a shader plugin?
The example plugins (cinema4dsdk with all the stuff in it) only uses RayLight in some shading functions.
I searched the SDK help forum for RayLight, but all I found were some code snippets using GetParameter or something like that. I'm quite new to the C4D SDK, have just started yesterday evening, and I am trying to write a custom scene exporter, which should also be able to export the lights (or an approximation to them fitting in my "file format"), so it would be handy to just have the RayLight instead of having to somehow find out all the constants needed for GetParameter and stuff.
If there is no way to get a RayLight from a BaseObject of type Olight: Does anyone know where I could look up how to get all the light parameters from the "General" and "Details" tab in C4D?