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
    • Recent
    • Tags
    • Users
    • Login

    How to edit the active Render-Settings?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 534 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 24/04/2008 at 02:34, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      Mac OSX  ; 
      Language(s) :

      ---------
      Hi!

      I have a small problem:

      BaseDocument* doc = GetActiveDocument();
                RenderData* rd = doc->GetFirstRenderData();
                BaseContainer rdata = rd->GetData();     
                
                rdata.SetBool(RDATA_RENDERASEDITOR, TRUE);
                rdata.SetFilename(RDATA_PATH,Filename("...path..."));
                rdata.SetLong(RDATA_FORMAT, FILTER_JPG);

      Why does C4D don't change the settings? Do I forget something?

      Bye! and 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 24/04/2008 at 05:29, xxxxxxxx wrote:

        you forgot:

        > rd->SetData(const BaseContainer& bc, Bool add = TRUE);

        at the end.

        alternativley you could try rd->GetDataInstance()

        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 24/04/2008 at 07:23, xxxxxxxx wrote:

          Hi!

          THanks for the tip, I don't know why, but both tips didn't 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 24/04/2008 at 07:50, xxxxxxxx wrote:

            It works fine here, just remember to send a message to the node and the event. Also RDATA_RENDERASEDITOR is a LONG not a Bool. It goes from 0-3 for the different editor modi.

            > \> RenderData \*rd = doc->GetFirstRenderData(); \> BaseContainer \*rdata = rd->GetDataInstance(); \> \> rdata->SetLong(RDATA_RENDERASEDITOR, 3); \> rdata->SetFilename(RDATA_PATH, Filename("test")); \> rdata->SetLong(RDATA_FORMAT, FILTER_JPG); \> \> rd->Message(MSG_UPDATE); \> \> EventAdd(); \>

            cheers,
            Matthias

            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 24/04/2008 at 08:28, xxxxxxxx wrote:

              As Matthias does in his example, it is more efficient just to get the pointer to the BaseContainer and set values directly. This avoids the need to use SetData().

              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 24/04/2008 at 11:07, xxxxxxxx wrote:

                Hi!

                Thanks, it works 🙂

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