Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Accessing render settings

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 314 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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 🙂

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post