THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/05/2012 at 22:22, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
Hi folks,
how do I get the various render data values? I have the following, but it returns 0:
RenderData *RDA = RenderData::Alloc();
if(!RDA){GePrint("RDA not available...");}
RDA = doc->GetActiveRenderData();
Real WIDTH = RDA->GetData().GetReal(RDATA_XRES_VIRTUAL);
GePrint("Width = " + LongToString(WIDTH));
In this instance I'm just trying to print the render width value. I've tried numerous combinations, along with the use of BaseContainer, but I can't seem to return the correct value.
Kind regards,
WP.