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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Skip Tab during AM browse?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 292 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 16/01/2006 at 09:51, xxxxxxxx wrote:

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

      ---------
      Howdy,

      OK I've got the AM description browsing working, but I want to skip the object's Coordinates Tab in browsing. How would I do that.

      Adios,
      Cactus Dan

      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 26/01/2006 at 11:47, xxxxxxxx wrote:

        You can do this by ignoring any element whose groupid is ID_BASEOBJECT_GROUP1 or whose group had that groupid etc. This code will show you how it looks:

            
            
            AutoAlloc<Description> desc;  
            doc->GetFirstObject()->GetDescription(desc, 0);  
            void* h = desc->BrowseInit();  
            const BaseContainer* bc = 0;  
            DescID id, groupid, scope;  
            while (desc->GetNext(h, &bc, id, groupid))  
            {  
                GePrint(bc->GetString(DESC_NAME) + " " + DescIDToString(id) + " : " + DescIDToString(groupid));  
                GePrint(LongToString(groupid == DescID(ID_BASEOBJECT_GROUP1)));  
            }  
            desc->BrowseFree(h);  
            
        

        The test in this code is incomplete of course. You will have to keep track of the groupid ancestry as you go along, so that group within groups will work. (Or you could do it the brute-force way and jump directly from GROUP1 to ID_OBJECTPROPERTIES, or the next group of interest (a bit unsafe).

        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 26/01/2006 at 17:16, xxxxxxxx wrote:

          Howdy,

          Ah! OK, I see. I think I wasn't keeping track of the "groupid ancestry" when I tried it out. Thanks.

          Adios,
          Cactus Dan

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