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

    active render data not selected

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 226 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

      On 29/11/2016 at 06:54, xxxxxxxx wrote:

      Hi All,

      Currently i'm using these lines to create new render data.

      renderData = c4d.documents.RenderData()
      renderData.SetName(PLUGIN_NAME)
      doc.InsertRenderData(renderData)
      doc.SetActiveRenderData(renderData)

      This works really well and the render data is active but it is not selected. So when I go into my render settings I can see that the new one is active but it shows me the previous render settings.
      Is there a way to select the active render settings via the python script? I tried the doc.SetAllBits(c4d.BIT_ACTIVERENDERDATA) but this doesn't do anything.

      Thanx in advance
      RNE

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

        On 30/11/2016 at 10:45, xxxxxxxx wrote:

        Hi,

        the selection state (orange highlighting) of render settings is influenced via SetBit(). Unfortunately there's no ID/name exposed for this bit in the SDK. It is bit 0x08.

        Just like everything else we reveal from internal implementations, use this at your own risk and be prepared, that the bit might change at some point in future (not that I knew about any plans). Also please do not use the value-wise identical BIT_ENABLEPAINT, while it would work, it would be equally wrong. Rather have a constant of your of, e.g. BIT_SELECTRENDERDATA.

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