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
    • Recent
    • Tags
    • Users
    • Register
    • Login

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

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 253 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 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();

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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[URL-REMOVED]


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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