Accessing render settings

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/10/2007 at 07:11, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.5 
Platform:      
Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

---------
Hi all,

I was wondering if there is a way (preferably via xpresso or the COFFEE node in xpresso) to access the current render dimensions? For instance, a function that returns (640, 480) if that is the current setting in the render settings dialog?

Best,

Nick

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/10/2007 at 07:17, xxxxxxxx wrote:

var doc = GetActiveDocument();
var rdata = doc->GetFirstRenderData();
var settings = rdata->GetContainer();

var dimx = settings->GetInt(RDATA_XRES);
var dimy = settings->GetInt(RDATA_YRES);

Should work 🙂

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/10/2007 at 09:15, xxxxxxxx wrote:

Thanks so much! That works great!

Nick