Unique BaseContainer



  • 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?



  • 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));  
        
    


  • 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


Log in to reply