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

    container confusion

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 122 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 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?
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post