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

    Need a coffee script to build a spline

    General Discussion
    0
    4
    716
    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
      Helper
      last edited by

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

      On 09/03/2006 at 02:36, xxxxxxxx wrote:

      Dear engaged cinema friends, I have started to work with some simple coffee scripts last weekend. I am looking now for a code line for "creating a spline", want to make some experience with (helix, spline curves manipulation and so on) it and would like to adapt a splinetool from another program to cinema, the tool will be for free, if I have adapted it to cinema 🙂 I haven't found any advices in the sdk 9.5, or overread it. Perhaps somebody can help me? best regards from raining and snowing germany, frankolino :-))

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

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

        On 10/03/2006 at 04:23, xxxxxxxx wrote:

        Hi dear Cinema User, I have found such things yesterday 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-&g;_<_o:_<_o:p_>_()->GetHPB();
         
        and so on...
        ---------------------------------

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

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

          On 10/03/2006 at 14:50, xxxxxxxx wrote:

          For Xpresso, COFFEE, C++ development, you would probably get a quicker response if you ask in the "SDK Help" forum. 🙂

          Also, doing a search in that forum (with All to go past the current month) may provide the answer without even asking.

          1 Reply Last reply Reply Quote 0
          • H
            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:44, xxxxxxxx wrote:

            Thank you Robert! I have done it ;-), best regards, Frankolino 🙂

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