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

    R25 doesn't register the [c4d.ID_BASEOBJECT_COLOR] parameter

    Cinema 4D SDK
    2
    3
    499
    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.
    • R
      reubenlara
      last edited by reubenlara

      As you can see from the attached image, R25 won't highlight the following parameter:

      [c4d.ID_BASEOBJECT_COLOR]
      

      I'm using this to programmatically change the Display Color of a null, but it doesn't highlight in orange in either the Script Editor (when I type it) or the Script Log (when I manually change the color to trace a call), and since it doesn't recognize it, it throws an error. The same script highlights orange and runs fine in R23. Unless I'm missing something, I believe this is a bug?

      c4d-ID_BASEOBJECT_COLOR.png

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @reubenlara, I'm not able to reproduce here ID_BASEOBJECT_COLOR is correctly highlighted in R25.010 in Windows and Mac.

        Would it be possible to share your full script with us? And also the complete error log.
        However looking at the error the issue come later at the and this is the CallCommand(12298) which fail, moreover according to your screen you do have an object called 3D_Cursor so this branch will never be taken (at least not in your case).

        Just to be sure would it be possible for you to write in the console c4d.ID_BASEOBJECT_COLOR and press enter. 908 should be written.

        Thanks in advance,
        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        R 1 Reply Last reply Reply Quote 1
        • R
          reubenlara @m_adam
          last edited by

          @m_adam OK this is really weird. I tried this over and over yesterday for several hours. this morning it is working fine! It must have been a case of restarting my machine or something. All set on my end! Thanks for testing either way, much appreciated!

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