Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    No document update

    SDK Help
    0
    4
    361
    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
      Helper
      last edited by

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

      On 27/07/2005 at 10:13, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.x 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I have the following code:

      ...  
      RENDER_DATA = doc->GetFirstRenderData();  
      RD=RENDER_DATA->GetContainer();  
      WIDTH_VAR=bc->GetFloat(WIDTH);  
      HEIGHT_VAR=bc->GetFloat(HEIGHT);  
      RD->SetData(RDATA_XRES,int(WIDTH_VAR));  
      RD->SetData(RDATA_YRES,int(HEIGHT_VAR));  
      RD->SetData(RDATA_XFILM,int(WIDTH_VAR));  
      RD->SetData(RDATA_YFILM,int(HEIGHT_VAR));  
      RENDER_DATA->SetContainer(RD);  
      GeEventAdd(DOCUMENT_CHANGED);  
      ...
      

      But, even after execution, the Render Settings don't get updated. Why could this be?

      Rui Batista

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

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

        On 27/07/2005 at 13:06, xxxxxxxx wrote:

        Hmm, not sure but try RENDER_DATA->Message(MSG_UPDATE);

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

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

          On 28/07/2005 at 03:30, xxxxxxxx wrote:

          Didn't work. But I managed to make it work anyway. Don't ask me how!! 😉
          Thank you Samir.

          Rui Batista

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

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

            On 28/07/2005 at 05:06, xxxxxxxx wrote:

            Ok, it stopped working!!! 😞
            I even tried to force the update by typing:

            RENDER_DATA->Message(MSG_UPDATE);
            EventAdd();

            But nothing!!! The strange thing is that if I manualy change any number in the Resolution values (even just clicking the up arrow of the width and them pressing the down arrow to get the same value as before) and then I run the plug-in again, it works fine.
            Weird!!!

            Rui Batista

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