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
    1. Maxon Developers Forum
    2. shrvnn
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    shrvnn

    @shrvnn

    0
    Reputation
    100
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    shrvnn Unfollow Follow

    Latest posts made by shrvnn

    • RE: Cannot update values of BaseContainer of VideoPost

      I am facing a new problem. You said that c4d.EventAdd() will update the GUI.

      I am actually changing the Renderer from plugin which is called using CommandLine. When I make change, the value in drop down for Renderer changes from Standard to Indigo Renderer, but the sub menu doesn't refresh. The submenu has options like Output, Save, Material Override and so on.

      When I manually change it back to Standard and again back to Indigo renderer or any, the sub menu is refreshed and respective values are reflected. First it remain same as that of Standard Renderer.

      Is there any other way to update render settings menu?

      posted in Cinema 4D SDK
      S
      shrvnn
    • RE: Cannot update values of BaseContainer of VideoPost

      That really worked! Thank you so much Sebastian! I had almost hit a wall solving this.

      posted in Cinema 4D SDK
      S
      shrvnn
    • SetDriven updated at the end of script and not when SetDriver is updated

      I am trying to update SetDriver from the script and then do a CallCommand for rendering. The SetDriver is basically change in render setting Image save path.

      The SetDriven is only changed when the script ends and not straight away after SetDriver is updated.

      I want SetDriven to get updated as soon as SetDriver is updated through python script.

      Please help.

      posted in General Talk python r19
      S
      shrvnn
    • Cannot update values of BaseContainer of VideoPost

      I am using Indigo Renderer plugin in Cinema4D for rendering. I am trying to automate rendering. For that I need to change the value of Save Image path under Indigo Renderer settings in C4D Render Setttings.

      I have successfully accessed the value of Save Image path through code. But on modifying it doesn't reflect in render settings or even if I again fetch the values by repeating the same code. The values are not updated at all.

      rd = doc.GetActiveRenderData()   
      vp = rd.GetFirstVideoPost()
      while(vp.GetName() != "Indigo Renderer"): 
          vp = vp.GetNext()
          if(vp is None): 
              return
      bc = vp.GetData()
      
      #Getting the correct value as in Render Setting UI
      print bc[c4d.RS_IMAGE_SAVE_PATH]
      
      #Updating the file path
      bc[c4d.RS_IMAGE_SAVE_PATH] = "FileName"
      
      #Repeating the code to get the value after changing
      rd = doc.GetActiveRenderData()
      vp = rd.GetFirstVideoPost()
      while(vp.GetName() != "Indigo Renderer"): 
           vp = vp.GetNext()
           if(vp is None): 
               return      
       bc = vp.GetData()
      print rd[c4d.RS_IMAGE_SAVE_PATH]
      #The image path is not updated.
      

      I have also tried GetDataInstance() and then update, but didnt work.

      Please help!

      posted in Cinema 4D SDK python r19
      S
      shrvnn