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

    Topics created by shrvnn

    • S

      SetDriven updated at the end of script and not when SetDriver is updated

      General Talk
      • python r19 • • shrvnn
      2
      0
      Votes
      2
      Posts
      1.1k
      Views

      S

      Hello,

      Set Driven Keys is just some workflow to create an Xpresso setup connecting two parameters. This has nothing to do with scripting or CallCommand().

      Can you maybe explain somehow differently what you want to achieve?

      best wishes,
      Sebastian

    • S

      Cannot update values of BaseContainer of VideoPost

      Cinema 4D SDK
      • python r19 • • shrvnn
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      S

      Hello,

      I'm not really sure I understand what you are doing. Are you operating in a command line version of Cinema? Or is you code reacting to some command line arguments? Are you operating on the currently active BaseDocument?

      As I said, I don't have Indigo Renderer so I can't test this specific scenario.

      But when you "change" the renderer, you also have to "create" that renderer video post when operating in a new document. So it is not enough just to change the RDATA_RENDERENGINE parameter.

      This example shows how to set and create the "Hardware" renderer:

      renderData = doc.GetActiveRenderData() if renderData is None: return # set Hardware as active renderer bc = renderData.GetDataInstance() bc[c4d.RDATA_RENDERENGINE] = c4d.RDATA_RENDERENGINE_PREVIEWHARDWARE # add Hardware post effect # in Python a BaseList2D object must be created videoPost = c4d.BaseList2D(c4d.RDATA_RENDERENGINE_PREVIEWHARDWARE) renderData.InsertVideoPost(videoPost) c4d.EventAdd()

      You find general information on RenderData also in the C++ documentation: RenderData Manual.

      best wishes,
      Sebastian