THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/08/2007 at 15:34, xxxxxxxx wrote:
Cinema 4D Version: 10.111
Language(s) : C++ ;
I'm converting some code over from COFFEE into C++. A similar setup worked in COFFEE, but I'm not having luck in C++...
I'm having trouble getting the Ambient Occlusion settings from the render dialog.
BaseDocument *bDoc = GetActiveDocument();
RenderData* rdata = bDoc->GetActiveRenderData();
BaseContainer* rdbc = rdata->GetDataInstance();
BaseContainer* rdao = rdbc->GetContainerInstance(RDATA_AMBIENTOCCLUSION);
GeData rdAOMinLength = rdao->GetData(AMBIENTOCCLUSIONSHADER_MINLENGTH);
I'm getting an error that AMBIENTOCCLUSIONSHADER_MINLENGTH has not been declared.
I'm just starting out in C++, and I'm not really sure where I'm going wrong.
Can anyone help sort me out?