Creating a Spline with C.O.F.F.E.E



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

    On 07/09/2005 at 05:34, xxxxxxxx wrote:

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

    ---------
    Hi,

    i tried to create a Spline with COFFEE but it doesn´t work.
    It creates the Spline in the object-window, but the spline has no points(data)

    Can anyone help me!

    Here is what i have so far:

    / creating a new splineobject
         var meinSpline;
          if (!(meinSpline = AllocObject(Ospline))) return FALSE;
         var document = GetActiveDocument();
         StatusSetText("Spline was added");
         if (!document->InsertObject(meinSpline,NULL,NULL)) return FALSE;
         meinSpline->SetPoint(0,vector(0,0,0));
         meinSpline->SetPoint(1,vector(100,0,0));
         meinSpline->SetPoint(2,vector(100,100,0));
         meinSpline->SetPoint(3,vector(100,0,100));
         meinSpline->SetPoint(4,vector(0,0,100));
         EventAdd();



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

    On 07/09/2005 at 06:15, xxxxxxxx wrote:

    You need to send a "VariableChanged" message. See this 'old' message for code:

    NewPolygonObject


Log in to reply