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

    InExcludeData Help

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 134 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/10/2007 at 10:31, xxxxxxxx wrote:

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

      ---------
      Hey Guys,
      I have an InExcludeCustomGui in my dialog and I can find the custom gui with the FindCustomGui function of GeDialog. But no matter what I do I cannot get the InExcludeData to actually access the gui element. I have done an extensive search in the archives to try and resolve this, but the data returned is always NULL. Here is the code I have so far:

          
          
            
          InExcludeCustomGui *objectInExclude = (InExcludeCustomGui* )FindCustomGui(IDC_PLATINUMOB_OBJ_INEXCLUDE, CUSTOMGUI_INEXCLUDE_LIST);  
            
          GeData *newdata = NULL;
          
          
          
          
          if(objectInExclude)  
          {  
          BaseContainer *bc = objectInExclude->GetData().GetValue().GetContainer();
          
          
          
          
          //bc is always returned as null
          
          
          
          
          if(bc)  
          newData = bc->SetData(IDC_PLATINUMOB_OBJ_INEXCLUDE, GeData(CUSTOMDATATYPE_INEXCLUDE_LIST, DEFAULTVALUE));
          
          
          
          
          }
          
          
          
          
          BaseContainer *listData = NULL;  
          InExludeData *inexData = NULL;
          
          
          
          
          if(newData)
          
          
          
          
          {
          
          
          
          
          listData = newData->GetContainer();
          
          
          
          
          inexData = (InExcludeData* )listData->GetCustomDataType(IDC_PLATINUMOB_OBJ_INEXCLUDE, CUSTOMDATATYPE_INEXCLUDE_LIST);
          
          
          
          
          if(inexData)  
          {  
          GePrint("Found Data");  
          }else  
          {  
          GePrint("No data found");  
          }  
          }
          
          
          
      

      Do I need to attach the InExcludeCustomGui to the dialog somehow? I used ResEdit for the GUI part of the dialog. But the weird thing is that FindCustomGui returns the correct pointer. As always any help with this issue is very much appreciated.
      Josh

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