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

    SetInt32 fails on ComboBox even if the change occurs

    Cinema 4D SDK
    c++ windows r20
    2
    3
    809
    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.
    • X
      xNWP
      last edited by

      Hi all,

      So I stumbled across a bizarre bug (?). On the InitValues() function for my GeDialog I noticed that setting a ComboBox to the default value always returns false, even though it clearly works in the GUI. This is a bit annoying since I'm trying to maintain defensive programming. Am I going wrong somewhere or is this a bug with the API itself? The code is below along with a link the file on GitHub (the project is open source if you need to look around).

      if(!this->SetInt32(CBX_COORDINATE_SYSTEM, CBO_Y_UP))
          return false;
      

      CBX_COORDINATE_SYSTEM exists in c4d_symbols.h as does CBO_Y_UP.

      https://github.com/xNWP/HLAELiveLink/blob/687e07ae56e2fe60869fde717054f6e75a3825ef/source/hll_gui.cpp#L27

      Thanks in advanced!

      1 Reply Last reply Reply Quote 0
      • a_blockA
        a_block
        last edited by

        Hi,

        I can reproduce this behavior and indeed it looks like a bug. Sorry for the inconvenience. I filed a bug for our development. As far as I can see, it's really just the return value being wrong, so you should be fine by ignoring it until there is a fix.

        Cheers,
        Andreas

        X 1 Reply Last reply Reply Quote 1
        • X
          xNWP @a_block
          last edited by

          @a_block

          No inconvenience at all, just happy to hear it's not only me! 😄

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