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

    Unique BaseContainer

    SDK Help
    0
    3
    271
    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 07/07/2004 at 11:17, xxxxxxxx wrote:

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

      ---------How would you place a basecontainer with a unique ID in a document.  Where in the document would you place this basecontainer .  The SetData function under BaseDocument gives you a group of setting to chose from but I am not sure what to do.  Could anyone give me a simple example?

      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 07/07/2004 at 21:40, xxxxxxxx wrote:

        Just use the normal BaseList2D base class functions:

            
            
            const LONG UNIQUE_ID = 1016248;  
            if (doc->GetDataInstance()->GetContainerInstance(UNIQUE_ID) == NULL)  
            {  
              BaseContainer bc(UNIQUE_ID);  
              bc.SetString(1000, "Hello World!");  
                
              doc->GetDataInstance()->SetContainer(UNIQUE_ID, bc);  
            }  
            GePrint(doc->GetDataInstance()->GetContainerInstance(UNIQUE_ID)->GetString(1000));  
            
        
        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 09/07/2004 at 12:53, xxxxxxxx wrote:

          Thanks Mikael, that helps alot! 🙂
          Nate

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