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

    Making Multiple Tabs

    Scheduled Pinned Locked Moved SDK Help
    8 Posts 0 Posters 619 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 24/04/2012 at 11:49, xxxxxxxx wrote:

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

      ---------
      Can someone please show me a very basic example how to create multiple tabs for tag plugins?
      I have several questions about it:

      - Do I have to use GetDDescription() to make it work?
      - Can I use only the .res file formatting alone, and nothing else to pull this off?
      - Do I have to put each tab items in their own .h, .res and .str files?

      I just want to be able to group my GUI's into their own tabs. Nothing fancy or animated.
      I can do this easily with UserData by adding new groups. But I can't figure out how to do the same thing with plugins.

      -ScottA

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 24/04/2012 at 12:21, xxxxxxxx wrote:

        Hi Scott,

        You can achieve this by using the .res, .h, and .str files.

        RES file.

          
        GROUP ID_MY_TAB  
        {  
        ..Description elements.  
        }  
          
        GROUP ID_MY_TAB2  
        {  
           ..Description elements.  
        }  
        

        .H file

          
        ID_MY_TAB = 1000;  
        ID_MY_TAB2 = 1002;  
        etc...  
        

        .str FILE

          
        ID_MY_TAB = "Tab1";  
        ID_MY_TAB2 = "Tab2";  
        

        You do not have to use GetDDescription for this.  Although you can achieve that there if you want tabs to appear dynamically.

        You can do this all in the same .h .res .str file.

        🙂

        Hope that helps.

        ~Shawn

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 24/04/2012 at 12:22, xxxxxxxx wrote:

          As Shawn says! 🙂

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 24/04/2012 at 13:07, xxxxxxxx wrote:

            Thanks.

            -ScottA

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 25/04/2012 at 08:14, xxxxxxxx wrote:

              Follow up question.

              I have everything set up and working. And I've played around with hiding the the Tabs using the GetDDenabling() method. And all is working fine.
              But one thing I can't find in the SDK is how to make all the tabs(groups) selected by default when the tag is first added to the object.

              How do I make a tab/s selected by default?

              -ScottA

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 25/04/2012 at 08:40, xxxxxxxx wrote:

                GROUP ID_GROUP_NAME
                {
                        DEAULT 1;

                }

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

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 25/04/2012 at 09:02, xxxxxxxx wrote:

                  Thanks again. 🍺

                  -ScottA

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

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 25/04/2012 at 09:26, xxxxxxxx wrote:

                    No problem.  🙂

                    DEFAULT 0;    Would be inactive..  although this is the default so it's not really necessary.  🙂

                    ~Shawn

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