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

    IN_EXCLUDE GUI Element Usage

    SDK Help
    0
    3
    464
    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

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

      On 02/03/2003 at 20:01, xxxxxxxx wrote:

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

      ---------
      Having added this element to a description file, i can now see it, but i don't know how ot retrieve information from it can anyone help?

      the way i'm getting it's contents is to access it as a BaseContainer

      myobjectlist = interfacecontainer->GetContainer(ID_INEXCLUDE);

      is this right?

      from there where is the description of the ID's used so that i can retrieve the list of objects in there? (how can i find out how many objects are in there too?).

      The reason I want to use this interface element is simply because i want to have a list of obejcts, that i can then retreive their position from.

      should I use another interface element type instead to do this? (and any ideas why the IN_EXCLUDE element works, but when i remove an item from it c4d crashes?).

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

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

        On 04/03/2003 at 23:55, xxxxxxxx wrote:

        You have to get at the InExcludeData object (see customgui_inexclude.h) associated with the element.

            
            
            GeData inex;  
            obj->GetParameter(DescID(ID_INEXCLUDE), inex, NULL);  
            InExcludeData* inexdata = static_cast<InExcludeData*>(inex.GetCustomDataType(CUSTOMDATATYPE_INEXCLUDE_LIST));
        

        Then you can use the various functions in the InExcludeData class to access the objects in the list.

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

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

          On 05/03/2003 at 19:50, xxxxxxxx wrote:

          thanks this worked for me to get the object list out of s selection object (though having a IN_EXCLUDE object in my own gui caused cinema to quit for some reason whith this code invoked).

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