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

    Render Settings - setting ( Save path )

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 312 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 27/02/2007 at 08:46, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R10 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,
      Is there a way to set the "save path" of Render Settings through the API?
      thanks.

      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 27/02/2007 at 09:24, xxxxxxxx wrote:

        Have a look at RenderData in the SDK documentation:

        RDATA_PATH Filename Save path

        and

        RDATA_MULTIPASS_FILENAME Filename Multi-pass path

        These (and all other rendering data) are stored in the RenderData's BaseContainer. Use RenderData::GetDataInstance() to get a pointer to it and set/get values within.

        So, first you'll need to get your document and active render settings and do the magic:

        // Get Active Document  
        BaseDocument* doc = GetActiveDocument();  
        if (!doc) // panic! ;)  
          
        // Get Active Render settings  
        // - you can also traverse those available with  
        // - GetFirstRenderData() and rdata->GetNext()  
        RenderData* rdata = doc->GetActiveRenderData();  
        if (!rdata) // panic some more  
          
        // Get pointer to RenderData's BaseContainer  
        BaseContainer* rbc = rdata->GetDataInstance();  
        if (!rbc) // panic attack  
          
        // Set the save path  
        Filename renderpath = Filename("C:\Data\MyRenders"); // for instance  
        rbc->SetFilename(RDATA_PATH, renderpath);
        

        HTH,

        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 27/02/2007 at 12:39, xxxxxxxx wrote:

          very nice!
          thanks again!

          since the isnatnce is a BaseContainer the other params can be set with SetParameter() e.g.
          rbc->SetParameter(DescID(RDATA_FRAMEFROM), GeData(start) );

          🙂

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