On 26/02/2013 at 07:29, xxxxxxxx wrote:
Cinema 4D Version:
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?
EDIT: Corrected RayObject to RayLight.