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

    Including description elements

    SDK Help
    0
    5
    465
    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
      Helper
      last edited by

      On 07/06/2013 at 02:40, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R14 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I have problems including descriptions when using inheritance.
      This is the root class

      CONTAINER Trootclass
      {
      	GROUP GROUP_ROOTCLASS
      	{
      		BUTTON BUTTON_ROOTCLASS {}
      	}
      }
      

      And this is the descendant

      CONTAINER Tdescendant
      {
      	 **INCLUDE Trootclass;**  
      	GROUP GROUP_DESCENDANT_CLASS
      	{
      		BUTTON BUTTON_DESCENDANT {}
      	}
              **INCLUDE Trootclass;**  
      }
      

      When using the blue alternative, I do not see the root class button at all.
      When using the red alternative, I  see the root class button, yes. But it behaves strange, I cannot select the GROUP_ROOTCLASS at all in the Attributes Manager in C4D, something is not working here..
      How do I use the INCLUDE directive correctly, or furthermore - what have I done wrong?

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

        On 07/06/2013 at 03:39, xxxxxxxx wrote:

        Have you tried including Tbase to the Trootclass?  I think that it would be required (even if you aren't using the base groups).

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

          On 07/06/2013 at 04:39, xxxxxxxx wrote:

          Originally posted by xxxxxxxx

          Have you tried including Tbase to the Trootclass?  I think that it would be required (even if you aren't using the base groups).

          Yes it is there, I omitted it here in the forum to not clutter my code.
          But I made a mistake in my initial post, it is the Descendant's controls  that do not show up when I use the "blue" approach. The root controls are there all right.

          But have I misunderstood? I am supposed to see both the root's controls and the descendant's controls? Right?

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

            On 07/06/2013 at 04:56, xxxxxxxx wrote:

            Ok, I found the culprit.
            I had the enum for IDs starting on the same value, for both the root and the descendant, in their header files. So changing this fixed it.

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

              On 07/06/2013 at 09:41, xxxxxxxx wrote:

              Originally posted by xxxxxxxx

              Have you tried including Tbase to the Trootclass?  I think that it would be required (even if you aren't using the base groups).

              It isn't required. 🙂
              But if you do not register the description along with a plugin,
              you have to register it with RegisterDescription().

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