On 26/02/2013 at 07:29, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Hi!
I'm probably just blind, the documentation is a little unclear in the VolumeData section. I'm searching
for a way to obtain the RayLight* from a BaseObject* that has been defined in my shader plugin
via link-field, something like this:
BaseObject* light = bc->GetLink(MYSHADER_LIGHTSOURCE, doc);
LONG index = **vd- >GetLightObjectIndex(light); // This is what I search for**
RayLight* ray = vd->GetLight(index);
Is it possible and I just couldn't find it in the docs?
Thank you!
-Niklas
EDIT: Corrected RayObject to RayLight.