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

    Modify RenderData Container switches

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 486 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 02/09/2006 at 13:50, xxxxxxxx wrote:

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

      ---------
      Ti to All, I write a script to switch on-off some bool gadgets in the render settings panel (I would like to insert to xpresso COFFE node finally).
      I get the active render settings and that container datas what I would like to change. but after using the SetData function doesnt occured anything.
      Can I control render  settings panel from script or xpresso COFFE node?
      Should I refresh something?
      I copy here the whole script what I created:

          
          
          
          
          main(doc, op)  
          {  
            var rd=doc->GetFirstRenderData();  
            var activeRD;  
            var rdName;  
           var rdBit;
          
          
          
          
            // active render setting selection  
           while (rd)  
           {  
             rdName = rd->GetName();  
             rdBit = rd->GetBit(BIT_ARDATA);  
              if (rdBit == 1) break;   
              rd = rd->GetNext();  
           }  
              
            // select switches from bc  
            println("NAME OF ACTUAL RENDER SETTINGS = " + tostring(rd->GetName()));  
           var bc = rd->GetContainer();  
           //println(bc->GetData(RDATA_RESOLUTION));  
            println("- actual posteffect switch = " + tostring(bc->GetData(RDATA_POSTEFFECTS_ENABLE)));  
            println("- actual autolight switch = " + tostring(bc->GetData(RDATA_AUTOLIGHT)));
          
          
          
          
            //  switch off selected option gadgets in bc  
            var result = bc->SetData(RDATA_POSTEFFECTS_ENABLE,FALSE);  
            var result = bc->SetData(RDATA_AUTOLIGHT,FALSE);
          
          
          
          
            //  audit the changed parameters  
            println("- set posteffect switch = " + tostring(bc->GetData(RDATA_POSTEFFECTS_ENABLE)));  
            println("- set autolight switch = " + tostring(bc->GetData(RDATA_AUTOLIGHT)));
          
          
          
          
          }
          
          
          
      

      any suggestion would be cool
      thanks,
      fuxy

      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 05/09/2006 at 04:36, xxxxxxxx wrote:

        Hi all, any idea what is wrong?
         
        regards,
        Zoltan

        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 05/09/2006 at 07:19, xxxxxxxx wrote:

          Hy fuxi,
          it is just an idea I did not try this out yet, but perhaps sending some message might help? I 'd try doc->Message(DOCUMENT_CHANGED) for example or perhaps something with MSG_UPDATE?
          Like said, just an idea I do not know if it helps but I hope so.
          Good luck,
           
          Ebiwahnkenobi

          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 05/09/2006 at 09:49, xxxxxxxx wrote:

            Hi fuxy ,

            I think you have to set the container after setting it's data

            rd->SetContainer(bc);

            Ciao , Frank.

            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 05/09/2006 at 10:39, xxxxxxxx wrote:

              Hi Frank you won :)) . Thank you very much!!!
              Regards,
              fuxy

              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 05/09/2006 at 15:27, xxxxxxxx wrote:

                Hi ebiwahnkenobi, you won too, I had to use EventAdd() function...
                thanks again
                Regards,
                fuxy

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