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

    Set Key to Breakdowncolor

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 398 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 20/12/2017 at 00:12, xxxxxxxx wrote:

      Hey there,

      I would like to set the Breakdowncolor property of a range of keys.

      I can set them to relative keys using NBIT_CKEY_BREAKDOWN which changes the color as well.
      But .. I would like to have them colored but not relative in time.

      The NBIT_CKEY_BREAKDOWNCOLOR seems to be available ( even if it is not documented ) but changing it doesn't set the flag. - This might be why it is not documented, I know 😉

      Is there another - better and documented - way to set this flag in code?

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

        On 20/12/2017 at 03:37, xxxxxxxx wrote:

        Hi,

        NBIT_CKEY_BREAKDOWNCOLOR is not documented in the Python docs currently but it is in the C++ docs.
        Setting the NBIT and updating with EventAdd() afterwards should work as expected.
        NBIT_CKEY_BREAKDOWNCOLOR can be set with ChangeNBit() just like any other NBIT:

        key.ChangeNBit(c4d.NBIT_CKEY_BREAKDOWNCOLOR, c4d.NBITCONTROL_SET)
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post