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

    Looking for a simple splinecurve script

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 121 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 13/03/2006 at 04:40, xxxxxxxx wrote:

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

      ---------
      Hi dear Cinema User, I have found such things last week and perhaps somebody can say, if this code lines are useful for creating a splinecurve with coffee ! 🙂 have a good weekend, bye, frankolino 🙂
      --------------------------------------------------------
      main(doc,op)_<_o:_<_o:p_>_o:p>
      _rve=op;
      var bc;
       
      if (instanceof(curve,SplinePrimitiveObject))_<_o:_<_o:p_>_curve->GetSplineObject();
      _nstanceof(op,SplineObject)) return;
      _o-fareast-font-family: 'MS Mincho'"> 
      curve->InitLength(1);
      var long=curve->GetLength();   //länge der spline_si-language: FR; mso-fareast-font-family: 'MS Mincho'">s
      var inter=lenght/(nb_objets);   //berechnet die Intervalle der splines_e="mso-fareast-font-family: 'MS Mincho'"> (splines geschlossen)
      bc=cur_RU style="mso-fareast-font-family: 'MS Mincho'">ve->GetContainer();
      var close_="mso-fareast-font-family: 'MS Mincho'">=bc->GetData(SPLINEOBJECT_CLOSED);
      _"mso-fareast-font-family: 'MS Mincho'">if (close==FALSE) inter=length/(nb_objets-1);<_<_o:_<_o:p_>_/P>
       
      var object=op->GetDown();  // er_<_o:_<_o:p_>_...
      if (!object) return;
      var source_object=object->GetName();<_<_o:_<_o:p_>_class=MsoPlainText>var rot_s=objet->GetMg()->GetHPB();
      and so on...
      This code lines are for making instances, I doesn't need such a specific theme, but in this way to create a spline curve. I have written with a friend a little javascript tool for another 3d program and would like to adapt it to Cinema 4D 9.1. That's it :-), bye, best regards from Germany, Frankolino 🙂
      PS: If it's to hard to handle to adapt it to coffee or C+, we forget this project 🙂

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