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

    Description... missing member "ID"

    Cinema 4D SDK
    3
    5
    1.3k
    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.
    • E
      ello
      last edited by s_bach

      while updating to r20 i get a lot of errors according to DescriptionCommad / DescriptionGetBitmap, ID is no member

      	case MSG_DESCRIPTION_COMMAND:
      		switch(static_cast<DescriptionCommand*>(t_data)->id[0].id) 
      
      	case MSG_DESCRIPTION_GETBITMAP:
      		DescriptionGetBitmap *dgb = static_cast<DescriptionGetBitmap*>(t_data);                                  
      		AutoAlloc<BaseBitmap> bm;
      		switch(dgb->id[0].id)
      

      edit: maybe i found something . _descId[0].id doesn't throw an error. however i still cannot test way more errors and warnings to go 😉

      1 Reply Last reply Reply Quote 0
      • rsodreR
        rsodre
        last edited by

        In R20, it changed to id[0]._descId

        E 1 Reply Last reply Reply Quote 1
        • E
          ello @rsodre
          last edited by

          @rsodre so it is wrong way? my code seems to compile now

          1 Reply Last reply Reply Quote 0
          • S
            s_bach
            last edited by

            Hello,

            in Cinema 4D R20 the id member was removed from several structures like DescriptionCommand or DescriptionPopup. These structures now share a common base class: DescriptionBaseMessage. See API Change List in R20.

            DescriptionBaseMessage has the member _descId which can be used instead.

            Is your issue solved with that information?

            best wishes,
            Sebastian

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            E 1 Reply Last reply Reply Quote 2
            • E
              ello @s_bach
              last edited by

              @s_bach thank you. i still am on my road... at least it solves the compiler error. i get quite some crashes after updating. guess this will take some time

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