container confusion



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

    On 03/04/2008 at 07:56, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   10.5 
    Platform:      
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    I am using an expression plugin tag to assign nulls to some points on a spline and then if the nulls move code in the execute function moves the corresponding point with the null.  This works but I want to pass the original number of spline points from a function outside execute to exectue. I was trying this:

        
        
          
        class SplineNull : ExpressionPluginTag{.....
        
        
        
        
        SplineNull::Test()  
        {  
         var bc=GetContainer();  
          pObj=GetObject();  
         var e=pObj->GetContainer();  
         println(e);  
         e->SetData(SPOLDY,4);//pObj->GetPointCount());  
         SetContainer(e);}
        
        
        
        
        SplineNull::Execute(doc, op)  
        {  
         var b = op->GetContainer();  
         println(b);  
         println(spnew,"   ",b->GetData(SPOLDY));}
        
        
        
        
        So anyway from the printlns I can see that I'm getting different conainers.  I was thinking that same object and therefor same container.  Maybe I'm making a new container with GetConainer().
        
        
        
        
        Anyone have any ideas?
    

Log in to reply